HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 12 days agoWhy make it complicated?lemmy.mlexternal-linkmessage-square52fedilinkarrow-up1111arrow-down118file-text
arrow-up193arrow-down1external-linkWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 12 days agomessage-square52fedilinkfile-text
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up4·12 days agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.