☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 2 years agoLISP is uglylemmy.mlimagemessage-square39fedilinkarrow-up1233file-text
arrow-up1233imageLISP is uglylemmy.ml☆ Yσɠƚԋσʂ ☆ to Programmer Humor@lemmy.mlEnglish • 2 years agomessage-square39fedilinkfile-text
minus-square@Blackmist@feddit.uklinkfedilinkEnglish5•2 years agoI prefer a bunch of if (fucked_up) {return(error_code);} for checking common errors.
minus-square@DWin@sh.itjust.workslinkfedilink2•2 years 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.