HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 14 days agoWhy make it complicated?lemmy.mlimagemessage-square53fedilinkarrow-up1114arrow-down117file-text
arrow-up197arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 14 days agomessage-square53fedilinkfile-text
minus-squareThirdConsul@lemmy.mllinkfedilinkarrow-up4·13 days agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()
?
Yeah. That works.