Skip Menu |
Report information
Id: 131382
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] for, parens, and lack of whitespace (for(^700){say 2})
Download (untitled) / with headers
text/plain 580b
Code: for(^700){say 2} Result: ===SORRY!=== Error while compiling -e Undeclared routine: for used at line 1 This just happened on the channel: https://irclog.perlgeek.de/perl6/2017-05-27#i_14645895 Note that we already have a good error message: Code: for(^700) {say 2} Result: ===SORRY!=== Word 'for' interpreted as 'for()' function call; please use whitespace instead of parens at -e:1 ------> for⏏(^700) {say 2} Unexpected block in infix position (two terms in a row) at -e:1 ------> for(^700)⏏ {say 2} However, it is not printed if you omit space everywhere.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org