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
Something to allow you to change $_ to a real variable in blocks #36
Comments
Integrating this with autoboxing and subroutine signatures, it would be...
|
Using Devel::Declare I can make But I cannot override actual grep and map. the following all would work:
Would this be sufficient? or should we wait to override the actual map and grep builtins? |
Scratch the local, but otherwise this is done: http://github.com/exodist/Block-NamedVar - also uploaded to cpan, but may take a while to propogate I will try to put this into my branch of perl5i tonight |
nmap and ngrep are added in http://github.com/exodist/perl5i - master |
Good work, but I have to rain on it. Currently, perl5i cannot depend on Devel::Declare because it breaks one liners. That is open for debate as it blocks a lot of useful features. One possibility is for the perl5i binary to intercept -e and turn it into a real program. |
"One possibility is for the perl5i binary to intercept -e and turn it into a real program." Whats preventing us from doing this? is it a decision that has been made? If I were to do this would it be accepted (depending on implementation and quality of course) |
My master has -e capturing added, DD works with my cli tests. |
Its in 2.3.0_01. I suspect this feature will go away in v3 and be replaced with something using subroutine signatures. Example:
Especially if we can get rid of parens around methods.
|
Like in Ruby.
to be equivalent to
Perhaps using Data::Bind?
The text was updated successfully, but these errors were encountered: