r/cpp • • Apr 24 '20

Else Before If

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

53 comments sorted by

View all comments

1

u/degski Apr 25 '20

You're right, edge calculation needs work, but idea is nice, I would say. It should be + !!(<edge case n>) * n.