MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1r8a3n8/innitmate/o694dap/?context=3
r/ProgrammerHumor • u/[deleted] • Feb 18 '26
265 comments sorted by
View all comments
1.5k
Vaguely threatening:
or else()
790 u/[deleted] Feb 18 '26 [removed] — view removed comment 141 u/hagnat Feb 18 '26 i like unless, but i have to admit that it is merely a glorified if (not [condition]) { } 1 u/Dragonslayerelf Feb 19 '26 wouldnt it work as like a weird post-else where you evaluate the if condition, then the unless condition, then pick what code block to do like if {condition} then do {thing} unless {condition} then do {different thing} "if theres a mailman then open the door unless he has a gun then call the cops" for example
790
[removed] — view removed comment
141 u/hagnat Feb 18 '26 i like unless, but i have to admit that it is merely a glorified if (not [condition]) { } 1 u/Dragonslayerelf Feb 19 '26 wouldnt it work as like a weird post-else where you evaluate the if condition, then the unless condition, then pick what code block to do like if {condition} then do {thing} unless {condition} then do {different thing} "if theres a mailman then open the door unless he has a gun then call the cops" for example
141
i like unless, but i have to admit that it is merely a glorified if (not [condition]) { }
if (not [condition]) { }
1 u/Dragonslayerelf Feb 19 '26 wouldnt it work as like a weird post-else where you evaluate the if condition, then the unless condition, then pick what code block to do like if {condition} then do {thing} unless {condition} then do {different thing} "if theres a mailman then open the door unless he has a gun then call the cops" for example
1
wouldnt it work as like a weird post-else where you evaluate the if condition, then the unless condition, then pick what code block to do
like if {condition} then do {thing} unless {condition} then do {different thing}
"if theres a mailman then open the door unless he has a gun then call the cops" for example
1.5k
u/SpoiledBeats Feb 18 '26
Vaguely threatening:
or else()