Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 19 days agoModern Programminglemmy.zipimagemessage-square19linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageModern Programminglemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · 19 days agomessage-square19linkfedilink
minus-squareDreadPirateShawn@lemmy.blahaj.zonelinkfedilinkarrow-up1·19 days agoThe ternary syntax is really my only real gripe with python design – putting the conditional BETWEEN the true and false values feels so very messy to me.
minus-squarebalsoft@lemmy.mllinkfedilinkarrow-up0·edit-219 days agoEh, reads pretty naturally to me. That said, (like I lisp)
minus-squareShareni@programming.devlinkfedilinkarrow-up1·19 days agoLisps makes more sense to me though (if condition a b) VS a if condition else b
minus-squareidunnololz@lemmy.worldlinkfedilinkarrow-up0·19 days agoAt least you guys have ternary syntax cries in kotlin.
minus-squareaubeynarf@lemmynsfw.comlinkfedilinkarrow-up1·3 days agoin Scala, everything is an expression, including “if”, maybe kotlin is the same?
The ternary syntax is really my only real gripe with python design – putting the conditional BETWEEN the true and false values feels so very messy to me.
Eh, reads pretty naturally to me. That said,
(like I lisp)
Lisps makes more sense to me though
(if condition a b)
VS
a if condition else b
At least you guys have ternary syntax cries in kotlin.
in Scala, everything is an expression, including “if”, maybe kotlin is the same?