JPDev@programming.dev to Programmer Humor@programming.dev · 10 months agoifn'tprogramming.devimagemessage-square72fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageifn'tprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 10 months agomessage-square72fedilink
minus-squareNocturnalMorning@lemmy.worldlinkfedilinkarrow-up0·10 months ago^This OP raises a valid point
minus-squareDarkassassin07@lemmy.calinkfedilinkEnglisharrow-up0·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-up0·10 months agovs if (not condition) {#actually do a thing}
minus-squareMNByChoice@midwest.sociallinkfedilinkarrow-up0·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
^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…