HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 day agoWhy make it complicated?lemmy.mlimagemessage-square48fedilinkarrow-up191arrow-down113file-textcross-posted to: programmer_humor@programming.dev
arrow-up178arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 day agomessage-square48fedilinkfile-textcross-posted to: programmer_humor@programming.dev
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up2·9 hours agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.