@HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish • 24 days agoWhy make it complicated?lemmy.mlimagemessage-square53arrow-up1115file-textcross-posted to: programmer_humor@programming.dev
arrow-up1115imageWhy make it complicated?lemmy.ml@HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish • 24 days agomessage-square53file-textcross-posted to: programmer_humor@programming.dev
minus-square@ThirdConsul@lemmy.mllinkfedilink4•23 days agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.