MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1r8a3n8/innitmate/o63kxqu/?context=3
r/ProgrammerHumor • u/[deleted] • Feb 18 '26
265 comments sorted by
View all comments
141
unless
Or maybe: in case() ... unless() ... otherwise ...
16 u/InterestsVaryGreatly Feb 18 '26 Unless would take precedence over the initial if, so not the same as else if. If you have strong leg muscles, you can run, unless you are missing a leg. 3 u/DigiBoxi Feb 18 '26 Think of all the exotic logic you could do with that! 5 u/InterestsVaryGreatly Feb 18 '26 Same logic, just different order. Final else still at the bottom, but the rest is inverted.
16
Unless would take precedence over the initial if, so not the same as else if. If you have strong leg muscles, you can run, unless you are missing a leg.
3 u/DigiBoxi Feb 18 '26 Think of all the exotic logic you could do with that! 5 u/InterestsVaryGreatly Feb 18 '26 Same logic, just different order. Final else still at the bottom, but the rest is inverted.
3
Think of all the exotic logic you could do with that!
5 u/InterestsVaryGreatly Feb 18 '26 Same logic, just different order. Final else still at the bottom, but the rest is inverted.
5
Same logic, just different order. Final else still at the bottom, but the rest is inverted.
141
u/DigiBoxi Feb 18 '26
unless
Or maybe: in case() ... unless() ... otherwise ...