Skip Menu |
Report information
Id: 123581
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: andrspv [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Sun, 11 Jan 2015 03:04:29 +0300
Subject: Infinite lists match [] signature
From: Andrei Osipov <andrspv [...] gmail.com>
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 246b
Greetings. $ perl6 --version This is perl6 version 2014.12 built on MoarVM version 2014.12 $ git log | head -1 commit e487d722daf30f51b4e231d0abee4457eb14ca4d The following occurs: multi foo([]){ "Empty" } my @x = 1...*; say foo(@x);
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 507b
<jnthn> m: (1..*).Capture.perl.say <camelia> rakudo-moar 6a3fc3: OUTPUT«Capture.new(hash => {"excludes-max" => Bool::False, "excludes-min" => Bool::False, "min" => 1, "max" => Inf})␤» <jnthn> ah <jnthn> m: (my @a = 1..*).Capture.perl.say <camelia> rakudo-moar 6a3fc3: OUTPUT«Capture.new()␤» <jnthn> That's a golf. * masak adds that to the ticket <jnthn> I think the conservative thing to do is to refuse to coerce an infinite thing to a Capture. <jnthn> That lets us revisit/liberalize in the future
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 635b
On Mon Jan 12 05:49:02 2015, masak wrote: Show quoted text
> <jnthn> m: (1..*).Capture.perl.say > <camelia> rakudo-moar 6a3fc3: OUTPUT«Capture.new(hash => {"excludes- > max" => Bool::False, "excludes-min" => Bool::False, "min" => 1, "max" > => Inf})␤» > <jnthn> ah > <jnthn> m: (my @a = 1..*).Capture.perl.say > <camelia> rakudo-moar 6a3fc3: OUTPUT«Capture.new()␤» > <jnthn> That's a golf. > * masak adds that to the ticket > <jnthn> I think the conservative thing to do is to refuse to coerce an > infinite thing to a Capture. > <jnthn> That lets us revisit/liberalize in the future
Implemented this, and added a test in S02-types/capture.t.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org