Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh come on, stop spreading FUD. Rust programs are 100% immune to crashes and bugs, they have memory safety (c).

Also, exception handling is hard and lame. We don't need exceptions, just add a "match" block after every line in your program.





What's the point of this sarcastic comment? Do you think that some people claim that Rust's memory safety guarantees mean that a Rust program is incapable of crashing or having a bug? This is a dumb thing to claim certainly, but I'm not aware of anyone actually making this claim.

I'm also not sure what you're getting at with the comment about exception handling being lame. I think the ML/Haskell inspired model that Rust uses of having a parameterized Result type for fallible operations is generally better than exceptions for a variety of reasons (although maybe better Exception semantics could help with some of this), but what does this have to do with match blocks?


> Do you think that some people claim that Rust's memory safety guarantees mean that a Rust program is incapable of crashing or having a bug?

Undoubtedly yes.

> ...but what does this have to do with match blocks?

You tell me. You're the one advocating for placing one after every single function call.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: