Hacker News new | ask | show | jobs
by arketyp 2904 days ago
Sure. But if fidelity to C style was not a concern then I don't see why the '==' syntax was adopted in the first place.
1 comments

== is an incredibly common syntax for equality and stand-alone not a problem. only if you introduce = to expressions too it becomes a risk. (well, you could theoretically accidentally write == for a normal assignment, but that kind of error is caught more easily)