qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-22 days agoSlapping on a .expect is also error handling!lemmy.worldimagemessage-square26fedilinkarrow-up1166arrow-down15file-text
arrow-up1161arrow-down1imageSlapping on a .expect is also error handling!lemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-22 days agomessage-square26fedilinkfile-text
minus-squarer00ty@kbin.lifelinkfedilinkarrow-up1·1 day agoI’ve seen this in production code before. I might argue if you caught a very specific exception type that didn’t matter it might be acceptable. Maybe. But just the overall Exception type… Recipe for disaster.
I’ve seen this in production code before. I might argue if you caught a very specific exception type that didn’t matter it might be acceptable. Maybe. But just the overall Exception type… Recipe for disaster.