Re:1/0 = 0
by stringer on Friday August 10, 2018 @04:53PM
(#17736655)
Were are speaking of integers here not FP numbers.
[ Parent
| on HN ]
Not to be pedantic, but one of the author's own examples involves pi inverse, so I think discussing FP numbers is valid.
Yes I know, but in the context of Pony, 1/0==0 only applies to integers, not FP numbers. The article doesn't make it clear.
Re:1/0 = 0
by spooneybarger on Friday August 10, 2018 @05:14PM
(#17736792)
floating point numbers in Pony follow the standard and return Infinity for division by zero. integer division by zero is undefined behavior and something each programming language has to decide how to handle.