by talles · 12y ago · 0 comments
I use the || trick really often, but never the && one.
By the way, why not use a one-liner if instead?
if (condition) something;
I find more readable this way.
Also, for example I use a sublime plugin to automatically tidy my code, and that isn't an option in it, so I don't do it anymore.