Re:Anti-If: The missing patterns (2016)
by tigershark on Wednesday June 27, 2018 @08:43AM
(#17407653)
Seriously, it took me something like 10 seconds to parse your parent post.
How a negated chain of if else would ever be easier to understand than a much simpler !a && b really defies my understanding...
[ Parent
| on HN ]
What about:
return a ? false : b;I still prefer the Boolean logic version.
I’m a heavy user of ternary, but it’s still an “if”. And and Or are (not very much) higher-level operations.