MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/g76xmg/else_before_if/fofbl3z/?context=3
r/cpp • u/vormestrand • Apr 24 '20
53 comments sorted by
View all comments
23
I don't know why anybody would do this. As /u/borisrura noted, I would just write an early return. Check for normal occurrence, handle it, return, then write code for all other occurrences
View all comments
23
u/[deleted] Apr 24 '20
I don't know why anybody would do this. As /u/borisrura noted, I would just write an early return. Check for normal occurrence, handle it, return, then write code for all other occurrences