Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: