@HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish • 1 day agoWhy make it complicated?lemmy.mlimagemessage-square47fedilinkarrow-up187arrow-down10file-textcross-posted to: programmer_humor@programming.dev
arrow-up187arrow-down1imageWhy make it complicated?lemmy.ml@HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish • 1 day agomessage-square47fedilinkfile-textcross-posted to: programmer_humor@programming.dev
minus-square@ThirdConsul@lemmy.mllinkfedilink2•8 hours agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.