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
Z* and X** are non associative and should require parentheses in Rakudo #2164
Comments
From @masak<moritz_> rakudo: say [+] '08:12:23'.split(':') Z* (60 X** reverse ^3) |
From @cokeno change in the past year. -- |
@coke - Status changed from 'new' to 'open' |
From sohtil@gmail.comA similar case for the operators X+> and ...: $ ../rakudo/install/bin/perl6
This is perl6 version 2012.09.1-7-gfb11f13 built on parrot 4.4.0 revision RELEASE_4_4_0 STD rejects this code: std: 4 X+> 1...2 spectest added: commit a5a1b211da1b1a8c6837773fabde848af3b1a10d Add test related to RT #77848, 'X+>' must not associate with '...'. diff --git a/S03-operators/precedence.t b/S03-operators/precedence.t |
From @masak<FROGGS> n: say (-300...300 X+> -5...5) The bug? STD and Niecza reject the parse, but Rakudo accepts it. It shouldn't. |
From @usev6A typed exception X::Syntax::NonAssociative is now thrown. $ perl6-m -e 'say [+] "08:12:23".split(":") Z* 60 X** reverse ^3' $ perl6 -e 'say 4 X+> 1...2' There are two (now passing) tests in S03-operators/precedence.t. I'm closing this ticket now. |
1 similar comment
From @usev6A typed exception X::Syntax::NonAssociative is now thrown. $ perl6-m -e 'say [+] "08:12:23".split(":") Z* 60 X** reverse ^3' $ perl6 -e 'say 4 X+> 1...2' There are two (now passing) tests in S03-operators/precedence.t. I'm closing this ticket now. |
@usev6 - Status changed from 'open' to 'resolved' |
From @usev6Rakudo gets it right now: $ perl6-m -e 'say (-300...300 X+> -5...5)' To me this looks like a duplicate of Ticket #77848 (https://rt-archive.perl.org/perl6/Ticket/Display.html?id=77848) and there is a test for parsing "4 X+> 1...2". I'll merge both tickets. If you think we should have a separate test for parsing "-300...300 X+> -5...5", please reopen the ticket. |
1 similar comment
From @usev6Rakudo gets it right now: $ perl6-m -e 'say (-300...300 X+> -5...5)' To me this looks like a duplicate of Ticket #77848 (https://rt-archive.perl.org/perl6/Ticket/Display.html?id=77848) and there is a test for parsing "4 X+> 1...2". I'll merge both tickets. If you think we should have a separate test for parsing "-300...300 X+> -5...5", please reopen the ticket. |
@usev6 - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#77848 (status was 'resolved')
Searchable as RT77848$
The text was updated successfully, but these errors were encountered: