JPDev@programming.dev to Programmer Humor@programming.dev · 1 year agoifn'tprogramming.devimagemessage-square127fedilinkarrow-up1773arrow-down111
arrow-up1762arrow-down1imageifn'tprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square127fedilink
minus-squareNocturnalMorning@lemmy.worldlinkfedilinkarrow-up2arrow-down2·1 year ago^This OP raises a valid point
minus-squareDarkassassin07@lemmy.calinkfedilinkEnglisharrow-up6·1 year 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-up2arrow-down2·1 year agovs if (not condition) {#actually do a thing}
minus-squareMNByChoice@midwest.sociallinkfedilinkarrow-up3·1 year 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…