Re:The Evil Within the Comparison Functions
by foota on Sunday February 18, 2018 @05:52PM
(#16409322)
I can't believe I'm saying this, but it would be nice if it behaved like null in SQL.
[ Parent
| on HN ]
That just means you get the problem even further away from the condition that generated it - perhaps your whole query returns NULL. You want the opposite, fail-fast so that you can see what the specific problem was. Signalling NaNs are the way to go unless you have very specific performance requirements.