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