ifn'tprogramming.devimage JPDev ( @JPDev@programming.dev ) Programmer Humor@programming.dev • 6 months ago message-square45fedilinkarrow-up1413
arrow-up1413imageifn'tprogramming.dev JPDev ( @JPDev@programming.dev ) Programmer Humor@programming.dev • 6 months ago message-square45fedilink
minus-square Darkassassin07 ( @Darkassassin07@lemmy.ca ) linkfedilinkEnglish3•6 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-square gandalf_der_12te ( @gandalf_der_12te@feddit.de ) linkfedilink2•6 months agovs if (not condition) {#actually do a thing}
minus-square MNByChoice ( @MNByChoice@midwest.social ) linkfedilink2•6 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
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…