HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 month agoWhy make it complicated?lemmy.mlexternal-linkmessage-square51fedilinkarrow-up1110arrow-down117file-text
arrow-up193arrow-down1external-linkWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 month agomessage-square51fedilinkfile-text
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up4·1 month agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.