qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-23 months agoSlapping on a .expect is also error handling!lemmy.worldexternal-linkmessage-square26fedilinkarrow-up1106arrow-down10file-text
arrow-up1106arrow-down1external-linkSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-23 months agomessage-square26fedilinkfile-text
minus-squaredejected_warp_core@lemmy.worldlinkfedilinkarrow-up2·3 months agoExactly. Personally, I call it “python mode” since you’re staying on the “happy path” and let the program just crash out if those expectations aren’t met.
Exactly.
Personally, I call it “python mode” since you’re staying on the “happy path” and let the program just crash out if those expectations aren’t met.