Good price.

  • Transporter Room 3
    link
    fedilink
    31 year ago

    You ever have one of those moments when you just put 2 and 2 together, and also that you should have had that realization many years ago?

    I just realized what NaN stands for…

    This must be what people who get told “you can just wait for the shower water to warm up before hopping in” feel like.

    • xigoi
      link
      fedilink
      21 year ago

      Not only that, it makes your entire purchase free due to NaN arithmetic.

      • BlueKey
        link
        fedilink
        21 year ago

        But as you mention, NaN propagates.
        So at checkout, your wallet will become NaN, as the shops money balance. Then it will spread to your bank account and before you realize what happens the whole banking-district is in flames.

    • Rikudou_Sage
      link
      fedilink
      11 year ago

      Isn’t any math operation involving NaNs also a NaN? At least that’s my gut feeling.

    • tiredofsametab
      link
      fedilink
      11 year ago

      In JS, it’s just NaN if my browser’s console is to be believed. I suspected it would probably be {object} for no clear reason

        • Victor
          link
          fedilink
          01 year ago

          I think its type system is “okay”, I mean inherently dynamic typing is pretty error-prone. But its type coercion algorithms are bonkers. Also that whole “NaN ≠ NaN” business…

          • nickwitha_k (he/him)
            link
            fedilink
            11 year ago

            Also that whole “NaN ≠ NaN” business…

            See that’s one of the parts that is actually almost in line with other languages. In Go, for example, nilnil because nil is, by definition, undefined. You can’t say whether one thing that you know nothing about is at all like something else that you know nothing about. It really should raise an exception at the attempt to compare NaN though.

            • Victor
              link
              fedilink
              01 year ago

              If nil ≠ nil, how do you compare a variable to the literal?

              • nickwitha_k (he/him)
                link
                fedilink
                01 year ago

                You’d first check for nil values, then compare like normal. Extra step, yes, but it keeps you from hitting NPEs through that route.

                • Victor
                  link
                  fedilink
                  01 year ago

                  You’d first check for nil values

                  What does this mean, if not the same as

                  then compare like normal

                  ?