jroid8@lemmy.world to Programmer Humor@lemmy.ml · 11 months agoknow the features of your languagelemmy.worldimagemessage-square22fedilinkarrow-up112arrow-down10
arrow-up112arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 11 months agomessage-square22fedilink
minus-squareKnusper@feddit.delinkfedilinkarrow-up0·11 months agoI enjoy this: return a.or(b); But yeah, that requires an Option type rather than null pointers…
I enjoy this:
But yeah, that requires an
Option
type rather thannull
pointers…a?.or(b)
Kotlin go brr
a ?: b