Two Case Studies of NaN

(sebsite.pw)

16 points | by ryantsuji 4 days ago

2 comments

  • fragmede 22 minutes ago
    Wat.

    I wish there were a recent remake of it.

  • whatever1 2 hours 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.

    • bazoom42 1 hour ago
      This article is not about null but about NaN, a special case floating-point value which is the result of diving by zero.