JPDev to Programmer Humor · 10 months agoifn'timagemessage-square127fedilinkarrow-up1774arrow-down111
minus-squarevlad@lemmy.sdf.orglinkfedilinkarrow-up11arrow-down1·10 months agoWhat’s wrong with “else”
minus-squareNocturnalMorning@lemmy.worldlinkfedilinkarrow-up2arrow-down2·10 months ago^This OP raises a valid point
minus-squareDarkassassin07@lemmy.calinkfedilinkEnglisharrow-up6·10 months 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·10 months agovs if (not condition) {#actually do a thing}
minus-squareMNByChoice@midwest.sociallinkfedilinkarrow-up3·10 months 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…