qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 day agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square26fedilinkarrow-up1161arrow-down15file-text
arrow-up1156arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 day agomessage-square26fedilinkfile-text
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·edit-21 day 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.)