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
Non-deducible sequence ending in a Whatever star fails to give an error in Rakudo #2702
Comments
From @masak<moritz> r: say 1, 2, 6 ... * |
From @pmichaudOn Thu, Apr 05, 2012 at 01:46:53PM -0700, Carl Mäsak wrote:
For the moment, I'm going to argue Rakudo's behavior here as The sequence (1, 2, 6 ... *) produces a list with Since the Failure object is never used, its associated I suppose one could argue that a ... * sequence should produce Along similar lines, the other "mostly eager" forms of trying I agree that in most cases a mostly eager operation on a Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @nwc10On Thu Apr 05 14:56:03 2012, pmichaud wrote:
I'm not sure if I should have been asking this on IRC, or on the I don't know how things map consistently for the general case, but In that, as a programmer I would prefer to be told about errors at Nicholas Clark |
From @pmichaudOn Fri, Apr 06, 2012 at 03:53:11AM -0700, Nicholas Clark via RT wrote:
I agree compile-time detection of the above would be better. my @a := (1, 2 ... 10000), 10005, 10020 ... *; In the above case, do we expect the compiler to compile-time Anyway, I think we'll be more productive to move the Thanks! Pm |
From @nwc10On Mon, Apr 09, 2012 at 03:16:52PM -0500, Patrick R. Michaud wrote:
Agree. Should I open a new ticket for this, or has someone with a clearer Nicholas Clark |
From @usev6Nowadays this fails with a typed exception X::Sequence::Deduction $ ./perl6 -e 'say 1, 2, 6 ... *' $ ./perl6 -e 'say 1, 2, 6 ... 10' $ ./perl6 -e 'say ~(1, 2, 6 ... *)[10]' That looks fine to me. If no one objects I'll add a test for this and close the ticket. |
1 similar comment
From @usev6Nowadays this fails with a typed exception X::Sequence::Deduction $ ./perl6 -e 'say 1, 2, 6 ... *' $ ./perl6 -e 'say 1, 2, 6 ... 10' $ ./perl6 -e 'say ~(1, 2, 6 ... *)[10]' That looks fine to me. If no one objects I'll add a test for this and close the ticket. |
From @usev6On Wed Dec 17 13:31:07 2014, bartolin@gmx.de wrote:
I added two tests to S03-sequence/misc.t with commit Raku/roast@f6f6e0b637 I'm closing this ticket now. |
1 similar comment
From @usev6On Wed Dec 17 13:31:07 2014, bartolin@gmx.de wrote:
I added two tests to S03-sequence/misc.t with commit Raku/roast@f6f6e0b637 I'm closing this ticket now. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#112288 (status was 'resolved')
Searchable as RT112288$
The text was updated successfully, but these errors were encountered: