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

$() and $( ) should be the same thing #98

Open
zhuomingliang opened this issue Aug 28, 2015 · 0 comments
Open

$() and $( ) should be the same thing #98

zhuomingliang opened this issue Aug 28, 2015 · 0 comments

Comments

@zhuomingliang
Copy link
Member

06:11 ShimmerFairy ( and for the record, I only learned about $() a couple days ago, and I personally wouldn't mind if it went away. I don't see where it's useful enough to have a short form of {$/.ast // ~$/} )
06:12 * JimmyZ wish $() and $( ) is the same thing
06:12 *are
06:13 ShimmerFairy JimmyZ: I've never seen it used, except for a few spots in nqp and/or rakudo, and it doesn't seem like it has anything to do with regexes. I'm inclined to agree :)
06:15 JimmyZ: and on top of it, $() feels to me like a case of creeping "punctuation scalars" that I know existed in Perl 5, and we worked to get rid of :) (that is, Perl 5's $=, $', and probably everything else that could match /'$' <:Punct>/ :P)
06:16 JimmyZ well, at least, for consistency, they should be same thing
06:16 * TimToady agrees that $() can go
06:16 JimmyZ $[] vs $[ ] vs $() vs $( )
06:16 colomon_ joined #perl6
06:18 ShimmerFairy TimToady: for what it's worth, I kinda like the idea of something that automatically picks the right thing like that, but I think in most cases you're not working off $/ in the first place, and it's not worth a magical-variable-looking thing.
06:18 in most cases where you're interested in C<.ast>s, is what I meant.
06:19 TimToady it would make more sense to use $<> for that anyway

see http://irclog.perlgeek.de/perl6/2015-08-28#i_11129898 for more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant