I propose a new, more threatening kind of control flow.
do { /* something */ } or else { /* you don't want to find out */ }
211 1 ReplyPlease God let this be a humorous post that somehow does not also find a way to manage to come true...
108 2 Replycap () {
}
nocap () {}
98 0 ReplyReduce exclamation marks!? Great Scott!!!!! Is there a shortage of punctuation in the future!?
79 1 ReplyI like "unless" in Ruby
60 7 Replyaint (something) { somethingElse() }
52 0 Replyifn't(!valid)
halp?40 0 ReplyWhy not just ifnot? Same count of characters but an o instead of a possibly problematic single quote.
39 0 ReplyStill not as good as
whence
36 0 Reply"Help's with readability"? You know what else helps? Not using contractions and introducing an unbalanced single quote.
34 2 ReplyI'm struggling to understand if this is true or ifn't true
30 1 ReplyImagine the regex needed to highlight code with that extra single quote.
28 0 ReplyI'd take a
not
or "if not" operator tbh.26 0 ReplyI'm just hoping this paves the way to code with Southern dialect
iffun is == true iffun ain't == false
24 0 Replyifn't (myNum don't= 3 && myStr ain'tnull'rblankish)
19 0 Reply18 0 ReplyWith ahit like that its not microsoft java its now microsoft javascript
17 1 Replyreminds me of
#ifndef
instead of#if !defined(...)
13 2 ReplyWhat's wrong with "else"
11 1 ReplyThis has to be illegal. I mean, it's basically suicide incitement (or whatever is the phrase for it)
11 1 Replydie unless $keyword == "unless";
9 0 ReplyPython already has this.
9 0 Replyi assume "ifnot" wasn't edgy enough and makes inferior noises on custom mechanical keyboards? /s
10 2 Replyarray.whomst(element => element === needle)
4 0 ReplyI shan't!
4 0 ReplyThis is the !biggest comp sci innovation in !decades
3 0 Reply;-;
2 0 ReplyI 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} %
2 0 Reply