A recent rakudo commit [1] is a quick fix for #78896 [2] to allow
exponentiation of Duration's.

I'm uneasy with allowing this and I think the spec probably meant not
to but is badly worded [3]:

 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?

[1] 
https://github.com/rakudo/rakudo/commit/d9e22463479927fa8f1f594753979022de35970d
[2] http://rt.perl.org/rt3/Ticket/Display.html?id=78896
[3] 
https://github.com/perl6/specs/commit/32abb95b9776e1cb7672c8a6a77612c86b37aea2#L0R1333

Reply via email to