3 ms·
I prefer || and && because I can never seem to remember the bash `if` syntax.
by mmastrac 6y ago
I prefer || and && because I can never seem to remember the bash `if` syntax.
- the_jeremy 6y agoSure, it's weird to write (`then` is a separate statement, it has to end with `fi`, that's different), but I prefer making things easier to read than write. I believe that it's easier to read that boilerplate even if you have to look up how to write it.
- mmastrac 6y agoI guess I've been reading that construction long enough that it's obvious (at least to me). It's also helpful that the same construction is common in obfuscated and tightly-compiled Javascript...
- deleted 6y ago[deleted]