HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 15 days agoWhy make it complicated?imagemessage-square52fedilinkarrow-up1113arrow-down117file-text
arrow-up196arrow-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.