2 ms·
Except that 0 could actually be the result of a valid computation. NaN, undefined, or Infinity can not.
by PyroLagus 8y ago
Except that 0 could actually be the result of a valid computation. NaN, undefined, or Infinity can not.
- genezeta 8y agoAnd 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 agoIt 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.