3 ms·
You’ve picked a poor example. ‘=‘, ‘==‘, and ‘===‘ constantly trip up new coders and have led to some not-insignificant bugs. A lot of style guides even had to
by joshspankit 4y ago
You’ve picked a poor example. ‘=‘, ‘==‘, and ‘===‘ constantly trip up new coders and have led to some not-insignificant bugs.
A lot of style guides even had to include guards against the worst one:
‘if (variable = “string”)’
I think that putting guardrails there by making the assignment operator stand out was a smart move. Annoying to use, but smart.