News for hackers. Stuff that matters.
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...
Re:Anti-If: The missing patterns (2016) by bena on Wednesday June 27, 2018 @10:49AM (#17408556)
What about:

    return a ? false : b;
Re:Anti-If: The missing patterns (2016) by moomin on Wednesday June 27, 2018 @01:18PM (#17409969)
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.

Re:Anti-If: The missing patterns (2016) by bena on Wednesday June 27, 2018 @01:37PM (#17410138)
I was being mostly facetious.