☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agoLISP is uglylemmy.mlimagemessage-square41fedilinkarrow-up1229arrow-down116file-text
arrow-up1213arrow-down1imageLISP is uglylemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square41fedilinkfile-text
minus-squareBlackmist@feddit.uklinkfedilinkEnglisharrow-up5·1 year agoI prefer a bunch of if (fucked_up) {return(error_code);} for checking common errors.
minus-squareDWin@sh.itjust.workslinkfedilinkarrow-up2·1 year agoYup, never nest. All the conditions should be checked and returned if they failed as you go through the function with the successful response being the last line.
I prefer a bunch of
if (fucked_up) {return(error_code);}
for checking common errors.
Yup, never nest.
All the conditions should be checked and returned if they failed as you go through the function with the successful response being the last line.