Skip to content
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

Rakudo doesn't find >>[+]<<, or any operator with both bracketed infix and hyper in it #2353

Closed
p6rt opened this issue Feb 6, 2011 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 6, 2011

Migrated from rt.perl.org#83510 (status was 'resolved')

Searchable as RT83510$

@p6rt
Copy link
Author

p6rt commented Feb 6, 2011

From @masak

<jnthn> std​: 1 [[[+]]] 2
<p6eval> std 625303c​: OUTPUT«ok 00​:01 119m␤»
<jnthn> rakudo​: say 1 [[[+]]] 2
<p6eval> rakudo 684fdf​: OUTPUT«3␤»
<jnthn> :)
<masak> rakudo​: say 1 >>[[[[[RRRRR+]]]]]<< 2
<p6eval> rakudo 684fdf​: OUTPUT«===SORRY!===␤Could not find sub
&infix​:<[[[[[RRRRR+]]]]]>␤»
<masak> huh.
<moritz_> rakudo​: say 1 [[RR+]] 2
<p6eval> rakudo 684fdf​: OUTPUT«3␤»
<moritz_> rakudo​: say 1 >>[RR[RR+]]>> 2
<p6eval> rakudo 684fdf​: OUTPUT«===SORRY!===␤Could not find sub
&infix​:<[RR[RR+]]>␤»
<moritz_> seems it doesn't like that hyper'ed
<jnthn> hmm
<masak> rakudo​: say 1 >>R+<< 2
<p6eval> rakudo 684fdf​: OUTPUT«3␤»
<masak> rakudo​: say 1 >>[+]<< 2
<p6eval> rakudo 684fdf​: OUTPUT«===SORRY!===␤Could not find sub &infix​:<[+]>␤»
<masak> seems to be hyper and reduction together.
* masak submits rakudobug
<jnthn> oh
<jnthn> that's not a reduction
<jnthn> that's a bracketed infix
<jnthn> Or should be....
<masak> jnthn​: oh, true.
<benabik> Does >>[+]<< Make sense? Isn't [+] a listop, not a binop?
[+] 1, 2 not 1 [+] 2
<colomon> but rakudo screws it up
<colomon> If you use [+] as an infix, it's just +
<benabik> Non-intuitive, but okay.
<jnthn> The [+] in >>[+]<< is not related to [+] 1,2,3 style things.
It's just the same as >>+<<
<jnthn> Yeah, I was like "wtf" at first :)
<colomon> benabik​: I'm not sure it isn't non-intuitive and not okay. :)
<colomon> It seems a very very confusing overload.
<jnthn> colomon​: Yeah, not sure why it screws it up

@p6rt
Copy link
Author

p6rt commented Sep 30, 2011

From @moritz

Works now, and tested in t/spec/S03-metaops/hyper.t

@p6rt
Copy link
Author

p6rt commented Sep 30, 2011

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Sep 30, 2011
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant