-
Notifications
You must be signed in to change notification settings - Fork 1
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
Associativity for list operators. WAS: Non-associativeness of infix:<|> and infix:<^> #3321
Comments
From @peschwaIn roast currently skipping for rakudo is the following test: eval_dies_ok 'my Mu $a = (1 | 2 ^ 3)', '| and ^ may not associate.'; STD says the following: <psch> std: my Mu $a = (1 | 2 ^ 3) Rakudo currently parses successfully as right-associative: <psch> r: my Mu $a = (1 | 2 ^ 3); $a.say <psch> r: my Mu $a = (1 | 2 ^ 3); $a.say <psch> r: $*PERL<compiler><ver>.say |
From @peschwaAm Di 28. Jan 2014, 14:07:59, peschwa@gmail.com schrieb:
Applies similarly for: eval_dies_ok '1, 2 Z 3, 4 X 5, 6' which STD rejects with the same warning as above, but Rakudo currently parses as follows: <psch> r: say 1, 2 Z 3, 4 X 5, 6 |
From @usev6This now throws a typed exception X::Syntax::NonAssociative $ perl6 -e '1, 2 Z 3, 4 X 5, 6' $ perl6 -e 'my Mu $a = (1 | 2 ^ 3)' The tests in S03-operators/precedence.t have been unfudged with commit Raku/roast@e8f7579421 I'm closing this ticket now. |
1 similar comment
From @usev6This now throws a typed exception X::Syntax::NonAssociative $ perl6 -e '1, 2 Z 3, 4 X 5, 6' $ perl6 -e 'my Mu $a = (1 | 2 ^ 3)' The tests in S03-operators/precedence.t have been unfudged with commit Raku/roast@e8f7579421 I'm closing this ticket now. |
@usev6 - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#121107 (status was 'resolved')
Searchable as RT121107$
The text was updated successfully, but these errors were encountered: