We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[[<a>],]
Migrated from rt.perl.org#131701 (status was 'rejected')
Searchable as RT131701$
The text was updated successfully, but these errors were encountered:
Works (space between brackets and <a>):
$ perl6 -e 'dd [[ <a>],]' [["a"],]
Doesn't (no space):
$ perl6 -e 'dd [[<a>],]' ===SORRY!=== Error while compiling -e Unable to parse expression in bracketed infix; couldn't find final ']' at -e:1 ------> dd [[<⏏a>],]
Sorry, something went wrong.
On Tue, 04 Jul 2017 09:20:18 -0700, cpan@zoffix.com wrote:
Works (space between brackets and <a>): $ perl6 \-e 'dd \[\[ \<a>\],\]' \[\["a"\],\] Doesn't (no space): $ perl6 \-e 'dd \[\[\<a>\],\]' ===SORRY\!=== Error while compiling \-e Unable to parse expression in bracketed infix; couldn't find final '\]' at \-e​:1 \-\-\-\-\-\-> dd \[\[\<⏏a>\],\]
$ perl6 \-e 'dd \[\[ \<a>\],\]' \[\["a"\],\]
$ perl6 \-e 'dd \[\[\<a>\],\]' ===SORRY\!=== Error while compiling \-e Unable to parse expression in bracketed infix; couldn't find final '\]' at \-e​:1 \-\-\-\-\-\-> dd \[\[\<⏏a>\],\]
This isn't a bug but By Design. There's a formal ambiguity between Array constructors and reductions, and the way to resolve them is to use a space:
https://irclog.perlgeek.de/perl6-dev/2017-07-05#i_14830532
@zoffixznet - Status changed from 'new' to 'rejected'
No branches or pull requests
Migrated from rt.perl.org#131701 (status was 'rejected')
Searchable as RT131701$
The text was updated successfully, but these errors were encountered: