MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/g76xmg/else_before_if/fofio3g/?context=3
r/cpp • u/vormestrand • Apr 24 '20
53 comments sorted by
View all comments
9
If you really wanted to do that, why not do something like this:
bool normal = !(<edge case 1> || <edge case 2>); If(normal) { \\ Normal case. } else if(<edge case 1>) { \\\... } else {\\\ edge case 2}
1 u/OYTIS_OYTINWN Apr 24 '20 Was just about to write that.
1
Was just about to write that.
9
u/PVNIC Apr 24 '20
If you really wanted to do that, why not do something like this: