HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 15 days agoWhy make it complicated?imagemessage-square52fedilinkarrow-up1114arrow-down117file-text
arrow-up197arrow-down1imageWhy make it complicated?HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 15 days agomessage-square52fedilinkfile-text
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up4·14 days agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.