HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 13 days agoWhy make it complicated?lemmy.mlimagemessage-square52fedilinkarrow-up1114file-textcross-posted to: [email protected]
arrow-up1114imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 13 days agomessage-square52fedilinkfile-textcross-posted to: [email protected]
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up4·12 days agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.