Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stringer
on Aug 10, 2018
|
parent
|
context
|
favorite
| on:
1/0 = 0
Were are speaking of integers here not FP numbers.
curice
on Aug 10, 2018
|
next
[–]
Not to be pedantic, but one of the author's own examples involves pi inverse, so I think discussing FP numbers is valid.
stringer
on Aug 10, 2018
|
parent
|
next
[–]
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.
spooneybarger
on Aug 10, 2018
|
parent
|
prev
|
next
[–]
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.
halflings
on Aug 11, 2018
|
prev
[–]
The article mentions floating point numbers as well, and the same applies to integers anyway. Only used FP numbers for emphasis.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: