News for hackers. Stuff that matters.
Re:Show HN: A 2D game engine in under 1000 lines of C by anonytrary on Sunday February 02, 2020 @12:18AM (#22215287)
They work here too, but they're unnecessary since explicit short circuits are more readable and result in cleaner code. Apart from the obvious visual improvement, it encourages you to write functions that do one thing. Excessive use of "else" and branching can be a code smell. Over time, I've started using "else" less and less. I don't remember the last time I even used an "else".

There are no comments on this comment yet.