Re:JavaScript: The Curious Case of null >= 0
by marcosdumay on Saturday September 09, 2017 @02:41PM
(#15208515)
Honestly, I like implicit coercion of empty stuff into false. Yes, I do agree it makes the code more legible.
That said, objectively it doesn't gain that much. It may be that the cost of having any kind of implicit coercion is bigger than such gain. Implicit numeric coercion is another topic to think about, it is also hard to be sure if it is a net gain.
That said, objectively it doesn't gain that much. It may be that the cost of having any kind of implicit coercion is bigger than such gain. Implicit numeric coercion is another topic to think about, it is also hard to be sure if it is a net gain.