Lena to Programmer Humor@programming.devEnglish • 1 month agoPerfect relationshipgregtech.euimagemessage-square15fedilinkarrow-up1273arrow-down140file-text
arrow-up1233arrow-down1imagePerfect relationshipgregtech.euLena to Programmer Humor@programming.devEnglish • 1 month agomessage-square15fedilinkfile-text
minus-squareTJA!linkfedilink7•edit-21 month 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-square@48954246@lemmy.worldlinkfedilinkEnglish3•edit-21 month 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