qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-225 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square28linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-225 days agomessage-square28linkfedilinkfile-text
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up0·edit-225 days agoOh, it can happen when you do calculations with compile-time constants… But the GP’s claim that it’s a “frequent” thing is suspect. (Crashing is also useful when you are writing and-user applications, but you’ll probably want .expect like in the meme.)
Oh, it can happen when you do calculations with compile-time constants…
But the GP’s claim that it’s a “frequent” thing is suspect.
(Crashing is also useful when you are writing and-user applications, but you’ll probably want .expect like in the meme.)