Two Case Studies of NaN

(sebsite.pw)

10 points | by ryantsuji 4 days ago

1 comments

  • whatever1 35 minutes ago
    Just store what you mean to store for gods sake. We have been fighting with over-designed bs for decades.

    Zero is not absence of a value. It has a value, it happens to be 0. Same for undefined/infinity. They exist.

    Let the hardware engineers figure out an efficient way to deal with it. If it costs more, well if we add up all of the costs of bugs due to zero/null conversions, maybe it was worth it.