Re:JavaScript: The Curious Case of null >= 0
by tejas1mehta on Saturday September 09, 2017 @10:59PM
(#15210334)
I think the right response for such an operation would be to throw a runtime error as opposed to coercing it into an integer. That's what a lot of other languages like ruby do. While I understand JS' philosophy of dynamic typing and coercion rather than runtime errors. I think this is taking it too far.
[ Parent
| on HN ]
There are no comments on this comment yet.