@[email protected] to Programmer [email protected] • 1 year agoifn'tprogramming.devimagemessage-square116fedilinkarrow-up1730arrow-down111
arrow-up1719arrow-down1imageifn'tprogramming.dev@[email protected] to Programmer [email protected] • 1 year agomessage-square116fedilink
minus-square@[email protected]linkfedilinkEnglish5•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-square@[email protected]linkfedilink3•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…