Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error of trying to assign to read-only $/ should offer a solution #6549

Open
p6rt opened this issue Sep 25, 2017 · 1 comment
Open

error of trying to assign to read-only $/ should offer a solution #6549

p6rt opened this issue Sep 25, 2017 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Sep 25, 2017

Migrated from rt.perl.org#132162 (status was 'new')

Searchable as RT132162$

@p6rt
Copy link
Author

p6rt commented Sep 25, 2017

From @zoffixznet

It's a pretty common error that a user tries to execute a regex inside of an Actions class and gets a confusing error​: https://irclog.perlgeek.de/perl6/2017-09-25#i_15215293

I think it's possible to throw a typed Exception and in its message detect when the readonly item is the $/ variable and offer a useful suggestion about not naming method's param $/

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant