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
Duration disallows some numeric operations with a number as the other argument in Rakudo #2248
Comments
From @masak<masak> I just got "Can't exponentiate a Duration" in real-world code. |
From @KodiologistThis restriction has been removed as of d9e224634. |
@Kodiologist - Status changed from 'new' to 'resolved' |
From kris@shannon.id.auOn Sun Nov 07 07:57:26 2010, masak wrote:
I don't think enough context was quoted (or paid atttention to) The next line in the spec is: $duration * $duration # WRONG, durations aren't geometric which would seem to apply to exponentiation as well. |
From @masakmasak (>>), Kris (>):
Taken literally, the spec allows "any numeric operation with a number Of course, the fundamental issue is whether restrictions of this kind Here's an article that moritz++ wrote about it: I agree with moritz' conclusion, that Duration should simply go away. |
Migrated from rt.perl.org#78896 (status was 'resolved')
Searchable as RT78896$
The text was updated successfully, but these errors were encountered: