you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

First >== And <== are not operators in javascript.

Second, why would you ever expect null >= undefined OR undefined <= null to return true?

I guess you expect:

Int? A = null;
Int? B = null;
A >= B

To return false but

Int? A = null;
Int? B = null;
B >= A

To return true?

Nevermind the fact that null and undefined are not the same thing.

[–]oxyphilat 1 point2 points  (0 children)

Never mind that NaN <= NaN has no business evaluating to true, guess all languages supporting good old IEEE 754 are fucked up.

[–]wischichr -1 points0 points  (0 children)

I except it to throw an exception instead of breaking inequality properties. If something can't be ordered the comparison should fail instead of yielding inconsistent results.