The reason why is:

https://github.com/rakudo/rakudo/blob/nom/src/core/metaops.pm#L187

Now, I’m not sure where we should fix this: either in method sum, or somehow 
make the METAOP_REDUCE_LEFT smarter.

> On 27 Jul 2016, at 23:19, Aleks-Daniel Jakimenko-Aleksejev (via RT) 
> <[email protected]> wrote:
> 
> # New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
> # Please include the string:  [perl #128757]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=128757 >
> 
> 
> Code:
> say [*] ‘hello’
> 
> Result:
> hello
> 
> 
> Code:
> say [/] ‘hello’
> 
> Result:
> hello
> 
> 
> Code:
> say [-] ‘hello’
> 
> Result:
> hello
> 
> 
> OK, so we get the idea, right?
> 
> Code:
> say [+] ‘hello’
> 
> Result:
> Cannot convert string to number: base-10 number must begin with valid digits 
> or
> '.' in '⏏hello' (indicated by ⏏)
> in block <unit> at -e line 1
> 
> Actually thrown at:
> in block <unit> at -e line 1
> 
> 
> Why?

Reply via email to