Hacker News new | ask | show | jobs
by jacobolus 3369 days ago
What if we want both NaN and infinity?
1 comments

if you really want both, then either 1) use IEEE floats or 2) write your own data type, or 3) used a boxed data type, which is really the best solution for the dominant "missing data" abuse case anyways.