JPDev@programming.dev to Programmer Humor@programming.dev · 2 years agoifn'tprogramming.devimagemessage-square127linkfedilinkarrow-up1775arrow-down111
arrow-up1764arrow-down1imageifn'tprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 2 years agomessage-square127linkfedilink
minus-squareNocturnalMorning@lemmy.worldlinkfedilinkarrow-up0arrow-down1·2 years ago^This OP raises a valid point
minus-squareDarkassassin07@lemmy.calinkfedilinkEnglisharrow-up2·2 years agoif(condition) {#block never used} else {#actually do a thing} Vs ifn't(condition) {#actually do a thing} Vs if!(condition) {#actually do a thing}
minus-squaregandalf_der_12te@feddit.delinkfedilinkarrow-up1arrow-down1·2 years agovs if (not condition) {#actually do a thing}
minus-squareMNByChoice@midwest.sociallinkfedilinkarrow-up1·2 years agoCannot start a statement with else. One can with ifn’t. There is a new thing where we don’t branch (which is a separate discussion). Or am I missing the joke…
What’s wrong with “else”
It’s not
ifn't*it’sn’t
I’dn’t’ve said it like that.
Perchance
^This
OP raises a valid point
if(condition) {#block never used} else {#actually do a thing}Vs
ifn't(condition) {#actually do a thing}Vs
if!(condition) {#actually do a thing}vs
if (not condition) {#actually do a thing}Cannot start a statement with else. One can with ifn’t. There is a new thing where we don’t branch (which is a separate discussion).
Or am I missing the joke…