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

Roast rakudo skip/todo test:./S02-literals/listquote.t line:12 reason: 'meta operators' #3874

Open
p6rt opened this issue May 3, 2015 · 3 comments

Comments

@p6rt
Copy link

p6rt commented May 3, 2015

Migrated from rt.perl.org#124558 (status was 'open')

Searchable as RT124558$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2015

From @ShimmerFairy

To offer some clarity on this bug report, this is the code being skipped in the file (with a 'say' added for this :

<ShimmerFairy> m​: say join |« <a x y z>
<camelia> rakudo-moar 5ba44f​: OUTPUT«Type check failed in binding op; expected 'Any' but got 'Mu'␤ in block <unit> at /tmp/5bam4cfq0k​:1␤␤»

On GLR​:

<ShimmerFairy> m​: say join |« <a x y z>
<GLRelia> rakudo-moar 36ea47​: OUTPUT«␤»

The expected output is "xayaz" (that is, <x y z>.join("a") )

@p6rt
Copy link
Author

p6rt commented Aug 31, 2015

The RT System itself - Status changed from 'new' to 'open'

@usev6
Copy link

usev6 commented Feb 18, 2023

I wonder if the test is (still) correct. Maybe this was something that changed with the GLR?

Current behavior is just a newline:

<bartolin_> m: say join |« <a x y z>
<camelia> rakudo-moar fd75bb0fe: OUTPUT: «␤»

Without the hyper operator:

<bartolin_> m: say join | <a x y z>
<camelia> rakudo-moar fd75bb0fe: OUTPUT: «xayaz␤»

The only mention of that I found was in https://design.raku.org/S06.html#Flattening_argument_lists

The unary | operator casts its argument to a Capture object, then splices that capture into the argument list it occurs in. To get the same effect on multiple arguments you can use the |« hyperoperator.

But in the example from the test there aren't multiple arguments, there's just one list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants