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

Possible parsing bug with map and Z in Rakudo #877

Closed
p6rt opened this issue Apr 8, 2009 · 4 comments
Closed

Possible parsing bug with map and Z in Rakudo #877

p6rt opened this issue Apr 8, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Apr 8, 2009

Migrated from rt.perl.org#64568 (status was 'rejected')

Searchable as RT64568$

@p6rt
Copy link
Author

p6rt commented Apr 8, 2009

From @masak

<Tene> rakudo​: map { say "$^a - $^b"}, 1..10 Z 1..10
<p6eval> rakudo 6b9755​: OUTPUT«No applicable candidates found to
dispatch to for 'map'
<masak> is that one in RT?
<Tene> dunno
* masak submits, just in case
<masak> rakudo​: map { say "$^a - $^b" }, (1..10 Z 1..10)
<masak> appears to be a parens thing.
<p6eval> rakudo 6b9755​: OUTPUT«1 - 1␤2 - 2␤3 - 3␤4 - 4␤5 - 5␤6 - 6␤7 -
7␤8 - 8␤9 - 9␤10 - 10␤»

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

From @bbkr

[13​:43] <bbkr> rakudo​: map { say "$^a - $^b"}, 1..10 Z 1..10
[13​:43] <p6eval> rakudo 261eb2​: OUTPUT«No candidates found to invoke␤
in 'map' at line 1593​:CORE.setting␤ in main program body at line
11​:/tmp/b5qrcyUWOD␤»
[13​:43] <colomon> rakudo​: map { say "$^a - $^b"}, (1..10 Z 1..10)
[13​:43] <p6eval> rakudo 261eb2​: ( no output )
[13​:44] <colomon> oh, not eager
[13​:44] <colomon> rakudo​: (1..10 Z 1..10).map( { say "$^a - $^b"}).eager
[13​:44] <p6eval> rakudo 261eb2​: OUTPUT«1 - 1␤2 - 2␤3 - 3␤4 - 4␤5 - 5␤6 -
6␤7 - 7␤8 - 8␤9 - 9␤10 - 10␤»
[13​:44] <masak> rakudo​: for 1..10 Z 1..10 -> $a, $b { say "$a - $b" }
[13​:44] <bbkr> not fixed then :)
[13​:44] <p6eval> rakudo 261eb2​: OUTPUT«1 - 1␤2 - 2␤3 - 3␤4 - 4␤5 - 5␤6 -
6␤7 - 7␤8 - 8␤9 - 9␤10 - 10␤»
[13​:45] <masak> bbkr​: what was the bug?
[13​:45] <bbkr> masak​: http://rt.perl.org/rt3/Ticket/Display.html?id=64568
[13​:47] <masak> bbkr​: not so sure... infix​:<,> binds tighter than
infix​:<Z>...
[13​:48] <bbkr> then it shuld get "rejected" status?
[13​:48] <masak> bbkr​: the error message is unfriendly, but it's
essentially complaining about &map being fed just a List.
[13​:48] <masak> bbkr​: as far as I can see, yes.
[13​:48] <bbkr> masak​: ok, rejecting. thanks

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

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

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

@bbkr - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Jun 30, 2010
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

1 participant