3 ms·
Hard disagree. Many more bugs are caused by the type coercion of '==' than are caused by people adding verbosity with the use of a single additional character.
by bigDinosaur 5y ago
Hard disagree. Many more bugs are caused by the type coercion of '==' than are caused by people adding verbosity with the use of a single additional character. It also is way easier to read code when you don't have to worry about the type coercion possibilities of JS's double equals operator. Type coercion should be opt-in and not the default, if there are good reasons for it existing at all, since it inherently makes things more complicated.
Imagine how absurd this position would be if there was an equivalent with the less/greater than operators...
- deleted 5y ago[deleted]