Xylight (Photon dev)@lemmy.xylight.dev to Programmer Humor@programming.dev · 1 year agoI don't want to use ternarieslemmy.xylight.devimagemessage-square10fedilinkarrow-up111arrow-down13
arrow-up18arrow-down1imageI don't want to use ternarieslemmy.xylight.devXylight (Photon dev)@lemmy.xylight.dev to Programmer Humor@programming.dev · 1 year agomessage-square10fedilink
minus-squareOro [she/they]@beehaw.orglinkfedilinkarrow-up1·edit-21 year agoThe whole idea of expressions is very nice, and I can’t imagine using ternary expressions anywhere after learning Rust. Also implicit returns ❤️
minus-squaremsage@programming.devlinkfedilinkarrow-up0·1 year agoI never got to like implicit anything. Not even returns. Ever.
minus-squarepomodoro_longbreak@sh.itjust.workslinkfedilinkEnglisharrow-up1·1 year agoYou get used to it pretty quickly. After a while you wonder how you ever lives without it. Explicit returns feel like ending an if with endif. The end of the conditional’s scope is implied by the end of the block by } or whatever.
The whole idea of expressions is very nice, and I can’t imagine using ternary expressions anywhere after learning Rust.
Also implicit returns ❤️
I never got to like implicit anything.
Not even returns. Ever.
You get used to it pretty quickly. After a while you wonder how you ever lives without it. Explicit returns feel like ending an
if
withendif
. The end of the conditional’s scope is implied by the end of the block by}
or whatever.