Am 17.11.2010 10:31, schrieb Kris Shannon:
A recent rakudo commit  is a quick fix for #78896  to allow
exponentiation of Duration's.
And it did so with a real world use case in mind.
I'm uneasy with allowing this and I think the spec probably meant not
to but is badly worded :
Durations allow additive operations with other durations, and allow
any numeric operation with a number as the other argument:
$duration * $duration # WRONG, durations aren't geometric
$duration * 2 # ok, a duration twice as long
2 * $duration # same
What are your thoughts?
I've summarized my thoughts here, before I read your email:
Another example: current Duration % Duration is forbidden. But I have a
very good use case:
suppose I want to organize a 60 minutes session, and it's filled with
presentations, each 8 minutes long. How long do I have for the
introduction, if I fit in as many presentations as possible?
The operation $session_duration % $presentation_duration answers me
that. Why am I not allowed to carry out that operation? Because some
designer thought I'd be better off not doing that operation. Wow,