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
Symmetric set difference (^) doesn't right-associate or chain in Rakudo #3536
Comments
From @masak<masak> m: say (<jet plane> (^) <network lag>) (^) <plane network> It's an interesting question in itself where the error message "Too |
From @pmichaudOn Wed, Oct 01, 2014 at 09:00:08PM -0700, Carl Mäsak wrote:
I noticed this a few weeks ago when playing with the set operators. The problem is that infix:<(^)> is correctly declared as having list associativity (it's at "junctive_or" precedence), but is defined as a binary operator in src/core/set_operators.pm. This is the reason for the "expected 2 arguments but got 3" message. For comparison, note that infix:<(|)> is defined in src/core/set_operators.pm as sub infix:<(|)>(**@p) infix:<(^)> needs to have a similar declaration instead of the 2-argument form that is there now. Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @masak<pmichaud> see my response to RT #122882 :) |
From @masak<lizmat> $ 6 'say <a network> (^) <b network> (^) <a network>' Marked as testneeded. |
From @pmichaudAdded tests in roast/S03-operators/set.t, marking ticket resolved. Pm |
1 similar comment
From @pmichaudAdded tests in roast/S03-operators/set.t, marking ticket resolved. Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#122882 (status was 'resolved')
Searchable as RT122882$
The text was updated successfully, but these errors were encountered: