HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 months agoWhy make it complicated?lemmy.mlimagemessage-square34fedilinkarrow-up178arrow-down114file-textcross-posted to: programminghumor@lemmy.world
arrow-up164arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 months agomessage-square34fedilinkfile-textcross-posted to: programminghumor@lemmy.world
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up4·3 months agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.