Xylight (Photon dev)@lemmy.xylight.dev to Programmer Humor@programming.dev · 1 year agoI don't want to use ternarieslemmy.xylight.devimagemessage-square2fedilinkarrow-up15arrow-down11
arrow-up14arrow-down1imageI don't want to use ternarieslemmy.xylight.devXylight (Photon dev)@lemmy.xylight.dev to Programmer Humor@programming.dev · 1 year agomessage-square2fedilink
minus-squareMarxine@lemmy.mllinkfedilinkarrow-up0arrow-down1·1 year agoHaving some experience with both Python and JS/TS, I don’t have much preference about ternaries or expressions. Although I always break lines for ternary statements. const testStuff = condition ? outcome(1) : outcome(2); Having everything on the same line ruins readability for me.
Having some experience with both Python and JS/TS, I don’t have much preference about ternaries or expressions. Although I always break lines for ternary statements.
const testStuff = condition ? outcome(1) : outcome(2);
Having everything on the same line ruins readability for me.