jroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years agoknow the features of your languagelemmy.worldimagemessage-square39linkfedilinkarrow-up120arrow-down10
arrow-up120arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square39linkfedilink
minus-squareKnusper@feddit.delinkfedilinkarrow-up0·2 years 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
Optiontype rather thannullpointers…a?.or(b)
Kotlin go brr
a ?: b