qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-210 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square15linkfedilinkarrow-up1111file-text
arrow-up1111imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-210 days agomessage-square15linkfedilinkfile-text
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·edit-210 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.)