|
|
|
|
|
by jancsika
2688 days ago
|
|
The author puts an exception in a didactic example of a "division" function. Then upon finding that the exception cannot easily generalize to all possible use-cases of the didactic example the author concludes: > So, the sad conclusion is: all problems must be resolved individually depending on a specific usage context. Why is that sad/revelatory? If the wrapper simply reproduces the behavior of a single infix operator for floating point numbers, then almost by definition one would need to reimplement NaN in order to get a general purpose exception handler. |
|