Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
PyroLagus
· 8y ago · 0 comments
Except that 0 could actually be the result of a valid computation. NaN, undefined, or Infinity can not.
Comments
[–]
genezeta
8y ago
And you mean that as saying that it is then better? Or that it is not?
(Sorry, I'm not sure which way you mean it)
[–]
Izkata
8y ago
It seems straightforwardly better to me, because the programmer/user gets an immediate "you messed up" signal, instead of silently returning the wrong values until someone eventually (hopefully) notices.