3 ms·
The practical downside is that it might make equations go slightly wonky, rather than completely wonky if a non-number is returned. For example, say if a zero
by scj 8y ago
The practical downside is that it might make equations go slightly wonky, rather than completely wonky if a non-number is returned.
For example, say if a zero divide happens with normalized values. Meaning the immediate result is only off by one at most. Odds of catching that are probably low. Meanwhile, a NaN will infect all numbers that come into contact with it, bubbling up faster...
Under this system, programs are easier to debug if they use bigger numbers... That property does not seem like a win to me.
If I attempt to open a file, but an access fault occurs, I'd rather be told the fault and given a chance to recover than receive an empty file.
- genezeta 8y agoI agree with that; in general I'd rather be told too. But I don't know anything about Pony or it's goals. So it may be preferable for them, I don't know.