JPDev@programming.dev to Programmer Humor@programming.dev · 7 months agoifn'tprogramming.devimagemessage-square127fedilinkarrow-up1769arrow-down111
arrow-up1758arrow-down1imageifn'tprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square127fedilink
minus-squareJoshuaEN@lemmy.worldlinkfedilinkEnglisharrow-up10arrow-down1·7 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·7 months agoIt’s also cool when you do unless(!condition). I particularly like this.
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.