@aredridel
Thought of the moment: I never use === in javascript. I find that every time I need it, I've made a boneheaded design flaw elsewhere.
@chris__martin
@aredridel === is a promise to the maintainer who comes after you that you knew what you were doing.
@aredridel
@chris__martin Heh. For me it's a signal that they didn't know what they were operating on.
I guess I can sort of see how what you're saying makes sense, but at the same time I don't follow at all.
Suppose you're reading this code:
That translates to
which tells me that the author either didn't understand what
== null
really matches, or understood it and doesn't know whetherfoo
might benull
orundefined
.