Lena@gregtech.eu to Programmer Humor@programming.devEnglish · 27 days agoPerfect relationshipgregtech.euexternal-linkmessage-square13fedilinkarrow-up1257arrow-down137file-text
arrow-up1220arrow-down1external-linkPerfect relationshipgregtech.euLena@gregtech.eu to Programmer Humor@programming.devEnglish · 27 days agomessage-square13fedilinkfile-text
minus-squareTJA!@sh.itjust.workslinkfedilinkarrow-up5·edit-227 days agoI really like the way kotlin is doing it. The readability of the first one and still a direct assignment. var a = if (isTrue) 2 else 9
minus-square48954246@lemmy.worldlinkfedilinkEnglisharrow-up3·edit-227 days agoI like the python way as it reads more naturally a = 2 if isTrue else 9
I really like the way kotlin is doing it. The readability of the first one and still a direct assignment.
var a = if (isTrue) 2 else 9
I like the python way as it reads more naturally
a = 2 if isTrue else 9