Remix.run Logo
jagadaga 2 hours ago

>I've long faulted Rust's use of Result over exceptions

Why?

wasmperson 6 minutes ago | parent | next [-]

The worst part about rust not having exceptions is that it actually does have exceptions, you just shouldn't use them. All the downsides and none of the benefits:

https://smallcultfollowing.com/babysteps/blog/2024/05/02/unw...

AlotOfReading an hour ago | parent | prev [-]

Not the person you're asking, but result types pessimize code more, add register pressure, use more icache for largely dead code, etc. They're arguably noisier at the source level too.

That said, I've spent too much of my life chasing implicit control flow to accept exceptions. Heck, C++'s "noexcept" is a strong argument against exceptions all by itself.