guber@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 12 days agoproportional reactionlemmy.blahaj.zoneimagemessage-square24linkfedilinkarrow-up1119cross-posted to: onehundredninetysix@lemmy.blahaj.zone
arrow-up1119imageproportional reactionlemmy.blahaj.zoneguber@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 12 days agomessage-square24linkfedilinkcross-posted to: onehundredninetysix@lemmy.blahaj.zone
minus-squareinfinitesunrise@slrpnk.netlinkfedilinkEnglisharrow-up23·12 days agoFor real though I actually find them incredibly useful for creating clean and readable code. I wish Lua 5.1 had a ternary syntax.
minus-squareConsti@lemmy.worldlinkfedilinkarrow-up6·12 days agoTernary, and inline switch (match expressions), as found in functional languages
minus-squareinfinitesunrise@slrpnk.netlinkfedilinkEnglisharrow-up5·12 days agoOh god yea, replicating switch functionality with a huge column of elifs is so gross.
For real though I actually find them incredibly useful for creating clean and readable code. I wish Lua 5.1 had a ternary syntax.
Ternary, and inline switch (match expressions), as found in functional languages
Oh god yea, replicating switch functionality with a huge column of elifs is so gross.