I don't want to use ternarieslemmy.xylight.devimage Xylight (Photon dev) ( @Xylight@lemmy.xylight.dev ) Programmer Humor@programming.dev • 1 year ago message-square12fedilinkarrow-up187
arrow-up187imageI don't want to use ternarieslemmy.xylight.dev Xylight (Photon dev) ( @Xylight@lemmy.xylight.dev ) Programmer Humor@programming.dev • 1 year ago message-square12fedilink
minus-square GTG3000 ( @GTG3000@programming.dev ) linkfedilink1•1 year agoand then you have lua local result = condition and a or b I’m not complaining, although it gets a little confusing when one of the results is falsey. Which is a rarity since only false and nil are falsey in lua.
minus-square Xylight (Photon dev) ( @Xylight@lemmy.xylight.dev ) OPlinkfedilink1•1 year agoStill less intuitive than Kotlin’s if expressions.
minus-square Leyla :) ( @LeylaaLovee@lemmy.fmhy.ml ) linkfedilink1•1 year agoIt’s amazing what people have made in Roblox with that language.
and then you have lua
I’m not complaining, although it gets a little confusing when one of the results is falsey. Which is a rarity since only
false
andnil
are falsey in lua.Still less intuitive than Kotlin’s if expressions.
It’s amazing what people have made in Roblox with that language.