logoalt Hacker News

tracker1last Thursday at 10:30 PM2 repliesview on HN

IMO, Rust panics should kill the application... C# errors shouldn't. Also, in practice, in C# where I was dealing with Result, there was just as much chance of seeing an actual thrown error, so you always had to deal with both an explicit error result AND thrown errors in practice... it was worse than just error patterns with type specific catch blocks.


Replies

mrsmrtsslast Friday at 7:51 AM

I think you just had experienced a bad codebase. If you opt for using Result then you can not throw at the same time. If you follow this rule, then it works perfectly.

neonsunsetlast Thursday at 11:10 PM

[dead]