JPDev to Programmer Humor · 11 months agoifn'timagemessage-square127fedilinkarrow-up1774arrow-down111
minus-squareKmlSlmk64@lemmy.worldlinkfedilinkarrow-up15arrow-down1·11 months agoIf someone really wanted to add it, probably the best would be to use unless
minus-squareJoshuaEN@lemmy.worldlinkfedilinkEnglisharrow-up10arrow-down1·11 months agoI really liked having unless in Ruby; a ! can be easy to miss, while unless made it clear without needing to write out != true.
minus-squareHexAndSquare@lemmy.worldlinkfedilinkarrow-up3arrow-down1·11 months agoIt’s also cool when you do unless(!condition). I particularly like this.
If someone really wanted to add it, probably the best would be to use
unless
I really liked having
unless
in Ruby; a!
can be easy to miss, whileunless
made it clear without needing to write out!= true
.It’s also cool when you do unless(!condition). I particularly like this.