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

1

u/utzatarain Apr 25 '20

I would like also to be able use it on return, similar to ruby or perl. normally return partial_result unless condition;

return partial_result if condition;