HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 10 days agoWhy make it complicated?lemmy.mlimagemessage-square52fedilinkarrow-up1112arrow-down118file-text
arrow-up194arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 10 days agomessage-square52fedilinkfile-text
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up4·9 days agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.