qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 year agoSlapping on a .expect is also error handling!lemmy.worldexternal-linkmessage-square26linkfedilinkarrow-up1106arrow-down10file-text
arrow-up1106arrow-down1external-linkSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-21 year agomessage-square26linkfedilinkfile-text
minus-squaresirdorius@programming.devlinkfedilinkarrow-up3·1 year agoUnwrap is good for prototyping and trying out stuff fast, but it generally shouldn’t make it past a code review onto main, unless you’re very sure
minus-squaredejected_warp_core@lemmy.worldlinkfedilinkarrow-up2·1 year 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.
Unwrap is good for prototyping and trying out stuff fast, but it generally shouldn’t make it past a code review onto main, unless you’re very sure
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.