Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jancsika
· 2y ago · 0 comments
Could "use strict;" have silently changed all occurrences of "==" to "==="?
Comments
[–]
Drakim
2y ago
That might introduce silent bugs, a much more reasonable way would be for "use strict"; to throw an error when == is used.
[–]
yuchi
2y ago
By definition, no. Use strict was a subset of JS.
[–]
jancsika
OP
2y ago
Ah, I see. So they could have at least excluded "==".