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

'where' clause followed by (non-parenthesized) expression with '&&' in it doesn't parse in parameter list in Rakudo #3189

Closed
p6rt opened this issue Jul 11, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 11, 2013

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

Searchable as RT118875$

@p6rt
Copy link
Author

p6rt commented Jul 11, 2013

From @masak

<diakopter> masak​: ready for that rakudobug?
<masak> diakopter​: sure.
<diakopter> rn​: https://gist.github.com/diakopter/5976904
<camelia> niecza v24-86-g39ab531​: OUTPUT«2␤»
<camelia> ..rakudo b19f72​: OUTPUT«===SORRY!===␤Missing block [...]
<diakopter> (add parens around the where clause and it parses)
<masak> std​: sub foo($x where ($x||=10) && True) {}
<camelia> std 85cf51d​: OUTPUT«ok 00​:00 48m␤»
* masak submits rakudobug
<masak> r​: sub ndr($r where ($r ||= 10) > 0 && 1) {}
<camelia> rakudo b19f72​: OUTPUT«===SORRY!===␤Missing block [...]

@p6rt
Copy link
Author

p6rt commented Oct 16, 2014

From @usev6

This parses now (on Moar, Parrot and JVM)​:

$ perl6 -e 'sub ndr($r where ($r ||= 10) > 0 && 1) { }; say "alive"'
alive

I added a test to S06-other/misc.t with the following commit​: Raku/roast@aeed867f01 and I'm closing the ticket.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 16, 2014

From @usev6

This parses now (on Moar, Parrot and JVM)​:

$ perl6 -e 'sub ndr($r where ($r ||= 10) > 0 && 1) { }; say "alive"'
alive

I added a test to S06-other/misc.t with the following commit​: Raku/roast@aeed867f01 and I'm closing the ticket.

@p6rt
Copy link
Author

p6rt commented Oct 16, 2014

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

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

No branches or pull requests

1 participant