qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-24 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square29fedilinkarrow-up1170arrow-down15file-text
arrow-up1165arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-24 days agomessage-square29fedilinkfile-text
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·edit-23 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.)