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
10 ** -1 is a Num, but should probably be a Rat since it can in Rakudo #4253
Comments
From @masak<jercos> m: for -1..2 ->\_{(10 ** _).WHAT.say} |
From @pmichaudHaving (10 ** -1) produce a Rat sounds potentially slippery-slope to me. For example, what about (9 ** 0.5) ? Also, while researching this I ran into the following: > say (9.0 ** -1) Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6As a status update: 10 ** -1 is now a Rat: $ perl6-m -e 'say (10 ** -1).WHAT' 9.0 ** -1 is also a Rat, and there is no type check error: $ perl6-m -e 'say (9.0 ** -1).WHAT' $ perl6-m -e 'say (9.0 ** -1)' 9 ** 0.5 is a Num: $ perl6-m -e 'say (9 ** 0.5).WHAT' |
1 similar comment
From @usev6As a status update: 10 ** -1 is now a Rat: $ perl6-m -e 'say (10 ** -1).WHAT' 9.0 ** -1 is also a Rat, and there is no type check error: $ perl6-m -e 'say (9.0 ** -1).WHAT' $ perl6-m -e 'say (9.0 ** -1)' 9 ** 0.5 is a Num: $ perl6-m -e 'say (9 ** 0.5).WHAT' |
From @AlexDanielYes, this was fixed in rakudo/rakudo@563abdd Testneeded. On 2015-11-12 12:19:37, bartolin@gmx.de wrote:
|
From @zoffixznetTests in Raku/roast#346 |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125215 (status was 'resolved')
Searchable as RT125215$
The text was updated successfully, but these errors were encountered: