ifn't

lordmauve, Python already has this.
muntedcrocodile, (edited ) ![]()
With ahit like that its not microsoft java its now microsoft javascript
ohlaph, That’s Typescript…
rimjob_rainer, (edited ) Why not just ifnot? Same count of characters but an o instead of a possibly problematic single quote.
KmlSlmk64, ![]()
If someone really wanted to add it, probably the best would be to use
unless
JoshuaEN, I really liked having
unless
in Ruby; a!
can be easy to miss, whileunless
made it clear without needing to write out!= true
.
HexAndSquare, It’s also cool when you do unless(!condition). I particularly like this.
Ookami38, I think it’s just capitalizing on a trend to add n’t to otherwise noy contractions, to make them into contractions. Contractionn’ts, if you will
Hexbear2, (edited ) This is the !biggest comp sci innovation in !decades
ohlaph, <span style="color:#323232;">aint (something) { </span><span style="color:#323232;"> somethingElse() </span><span style="color:#323232;">} </span>
Facebones, As a Virginian learning coding, this would make my damn day.
Threeme2189, <span style="font-weight:bold;color:#a71d5d;">#define </span><span style="font-weight:bold;color:#795da3;">aint</span><span style="color:#323232;">(x) </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(</span><span style="font-weight:bold;color:#a71d5d;">!</span><span style="color:#323232;">(x)) </span>
15liam20, Or maybe
taint(condition) {}
csm10495, ![]()
Imagine the regex needed to highlight code with that extra single quote.
olafurp, I’d take a
not
or “if not” operator tbh.
Appoxo, ![]()
ifnt instead of ifn’t
Thcdenton,
davidgro, Ding ding ding ding ding ding…
janabuggs, I’m struggling to understand if this is true or ifn’t true
PanArab, (edited ) This can’t be for real. I’ll stick with C11 thank you.
stardreamer, ![]()
Here you dropped this:
<span style="font-weight:bold;color:#a71d5d;">#define </span><span style="font-weight:bold;color:#795da3;">ifnt</span><span style="color:#323232;">(x) </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(</span><span style="font-weight:bold;color:#a71d5d;">!</span><span style="color:#323232;">(x)) </span>
Serpent7776, I can actually define this in TCL:
<span style="color:#323232;">% proc ifn't {cond cmds} {if {!$cond} {uplevel $cmds}} </span><span style="color:#323232;">% ifn't false {puts </span><span style="color:#0086b3;">12</span><span style="color:#323232;">} </span><span style="color:#323232;">12 </span><span style="color:#323232;">% ifn't true {puts </span><span style="color:#0086b3;">12</span><span style="color:#323232;">} </span><span style="color:#323232;">% </span>
Add comment