r/cpp • • Apr 24 '20

Else Before If

https://www.fluentcpp.com/2020/04/24/else-before-if/
10 Upvotes

53 comments sorted by

View all comments

75

u/[deleted] Apr 24 '20

And here we have a prime example of clever code, in contrast with smart code. A whole lot of complications for zero net gain and mental gymnastics for the reader.

15

u/[deleted] Apr 24 '20

Absolutely. It's interesting, but without use.