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
Can't call Callable objects in a list in parallel using the >>.() [or >>()] form in Rakudo #2138
Comments
From @masak<JimmyZ> rakudo: sub infix:<+-*/>($a, $b) { ( { $a + $b }, { $a - $b |
From @cokeOn Fri Sep 03 21:48:08 2010, masak wrote:
The first one (perhaps correctly) now gives a whatever code. 22:05 < [Coke]> rakudo: sub infix:<+-*/>($a, $b) { ( { $a + $b }, { $a - $b }, The failure on the third one looks plausible, though. Is this closable with tests? -- |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6Now the first code snippet also seems to work: $ perl6-m -e 'sub infix:<+-*/>($a, $b) { ( { $a + $b }, { $a - $b }, { $a * $b }, { $a / $b } )>>.() }; say 5+-*/2;' I added a test for that one to S03-metaops/hyper.t with the following commit: Raku/roast@85bf9926a1 The second example works as well (cmp. also ticket #77670): $ perl6-m -e 'say ( { 1 + 1 }, { 2 + 2 } )>>.()' I assume that the third example is not supposed to work. If that's wrong please reopen the ticket. |
1 similar comment
From @usev6Now the first code snippet also seems to work: $ perl6-m -e 'sub infix:<+-*/>($a, $b) { ( { $a + $b }, { $a - $b }, { $a * $b }, { $a / $b } )>>.() }; say 5+-*/2;' I added a test for that one to S03-metaops/hyper.t with the following commit: Raku/roast@85bf9926a1 The second example works as well (cmp. also ticket #77670): $ perl6-m -e 'say ( { 1 + 1 }, { 2 + 2 } )>>.()' I assume that the third example is not supposed to work. If that's wrong please reopen the ticket. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77668 (status was 'resolved')
Searchable as RT77668$
The text was updated successfully, but these errors were encountered: