3 ms·
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.
by arketyp 8y 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.
- detaro 8y ago== 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)