I propose a new, more threatening kind of control flow.
do { /* something */ } or else { /* you don't want to find out */ }
It exists, kind of. Python has this construct
for item in iterable: ... else: ...
which always puzzles me, since it depends on a break statement execution. I always have to look it up when the else block is executed.
You just made me a offer I can't refuse. I go now to sleep with the fishes...
*removed externally hosted image*
Please God let this be a humorous post that somehow does not also find a way to manage to come true...
I would have bought it if they said ifnot instead, it's the same number of characters and wouldn't require a major parser overhaul to support keywords with a ' in the name.
i mean, “unless” tends to be the usual term for an “if not” keyword in languages that implement such a thing
Yeah, to be clear, I don't like it, I don't like it one bit:-P.
*removed externally hosted image*
Gulp...
*removed externally hosted image* [link]
Also, just for fun, the prequel:
*removed externally hosted image*
Reduce exclamation marks!? Great Scott!!!!! Is there a shortage of punctuation in the future!?
"Help's with readability"? You know what else helps? Not using contractions and introducing an unbalanced single quote.
Runs havoc on parsing, too. It's bad for both humans and robots. I say we ship it.
Why not just ifnot? Same count of characters but an o instead of a possibly problematic single quote.
I hate seeing colloquial terms like ‘ain't’ in non-comment (ie. standardized) parts of code
This has to be illegal. I mean, it's basically suicide incitement (or whatever is the phrase for it)
I can actually define this in TCL:
% proc ifn't {cond cmds} {if {!$cond} {uplevel $cmds}} % ifn't false {puts 12} 12 % ifn't true {puts 12} %