3 ms·
> Yoda conditions An actually useful habit for those times one typos `=` instead of `==`.
by frumiousirc 3y ago
> Yoda conditions
An actually useful habit for those times one typos `=` instead of `==`.
- greatgib 3y agoIn my opinion it is an useless habit that makes the code less readable and harder to review. At the opposite, in my long professional life, I never saw such a bug or it not being noticed in the second.
- karmakaze 3y agoOr languages where `==` isn't actually symmetric and overloading/monkey-patching is possible and not uncommon.