qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-211 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square29fedilinkarrow-up1174arrow-down15file-text
arrow-up1169arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-211 days agomessage-square29fedilinkfile-text
minus-squaresirdorius@programming.devlinkfedilinkarrow-up8·edit-211 days 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·8 days 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.