Re:Infinite work is less work
by donaldihunter on Thursday July 11, 2019 @12:18PM
(#20412788)
Well Damian's program actually reports "Use of uninitialized value of type Any in numeric context" which the programmer can choose to be a warning or an exception.
Re:Infinite work is less work
by X6S1x6Okd1st on Thursday July 11, 2019 @10:40AM
(#20411839)
Yeah a lot of languages don't fall for the undefined should silently give valid results thing
I think I prefer Python's behaviour here, of just raising an OutOfRangeError, and not permitting NoneType to be coerced as an number.