Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Usage of NaN as hash key reminds me of the two uses of NULL in SQL. One is as unknown values which are never equal to anything even other NULL values. Another use is as a key for aggregate grouping. In that case the entry represents the aggregate for all the unknown values which aren't equal but still grouped together. Different uses have different meanings so invalid in one use does not invalidate other uses.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: