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
Sequence operator produces Rats which it should produce Ints #2223
Comments
From @masak<TimToady> rakudo: ~(64,32,16 ...^ Rat) |
From @moritzOn Sun Oct 10 16:19:38 2010, masak wrote:
FWIW this now terminates, but quite early: 17:04 < moritz_> rakudo: say ~(64,32,16 ...^ Rat) Seems to be missing a coercion step. But type objects now work as stoppers in general. |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOn Sun Feb 20 08:07:38 2011, moritz wrote:
This raises a spec question over at Raku/old-design-docs#47 -- |
From @moritzOn Sun Oct 10 16:19:38 2010, masak wrote:
FWIW I expected this to print 64 32 16 8 4 2 1 |
From @usev6The issue Raku/old-design-docs#47 has been closed by the end of last year. Now there is a method "narrow" which can be used in this case (I'll add a test for this): $ perl6 -e 'say ~( 64, {($_/2).narrow} ...^ Rat)' The sequence operator doesn't auto-coerce Rats to Ints (same behaviour as back in 2010; there also is a passing test for this behaviour in S03-sequence/basic.t since 2010-10-21). $ perl6 -e 'say ~(64,32,16 ...^ Rat)' So, was a consensus reached and this ticket can be closed? |
1 similar comment
From @usev6The issue Raku/old-design-docs#47 has been closed by the end of last year. Now there is a method "narrow" which can be used in this case (I'll add a test for this): $ perl6 -e 'say ~( 64, {($_/2).narrow} ...^ Rat)' The sequence operator doesn't auto-coerce Rats to Ints (same behaviour as back in 2010; there also is a passing test for this behaviour in S03-sequence/basic.t since 2010-10-21). $ perl6 -e 'say ~(64,32,16 ...^ Rat)' So, was a consensus reached and this ticket can be closed? |
From @usev6<masak> bartolin: you were the one who made a deal with #perl6, no? for every 5 RT tickets given a test, #perl6 owes you to un-stuck one RT ticket. do we owe you any at this point? Since there are passing tests in S03-sequence/basic.t, I'm closing this ticket now. |
1 similar comment
From @usev6<masak> bartolin: you were the one who made a deal with #perl6, no? for every 5 RT tickets given a test, #perl6 owes you to un-stuck one RT ticket. do we owe you any at this point? Since there are passing tests in S03-sequence/basic.t, I'm closing this ticket now. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#78324 (status was 'resolved')
Searchable as RT78324$
The text was updated successfully, but these errors were encountered: