top | item 33057389

(no title)

aspaceman | 3 years ago

Ease the snark space ranger.

> dynamic errors fail smaller granularity tasks and handlers deal with tasks failing due to safety checks going bad.

Yes and that's why Rust is bad here (but it doesn't have to be). Rust _forces_ you to stop the whole world when an error occurs. You cannot fail at a smaller granularity. You have to panic. Period. This is why it is being criticized here. It doesn't allow you any other granularity. The top comment has some alternatives that still work in Rust.

discuss

order

titzer|3 years ago

> You cannot fail at a smaller granularity.

Rust needs to fix that then. So we agree on that.

Jweb_Guru|3 years ago

What was said is not actually true of Rust.

__jem|3 years ago

> Rust _forces_ you to stop the whole world when an error occurs.

But... this isn't true??