Someone wrote in [personal profile] diziet 2022-12-23 09:33 am (UTC)

You’re turning an expression-based and declarative feature of Rust into a statement-based and imperative version.

Rust is expression-based. Rust leans towards declarative code.

Result is an algebraic sum type that gives you the full power of Monads in a mathematically correct model bound by laws.

You lose all of this, for what? To save yourself from having to write two letters? So you don’t have to bother with purity?

Throw/catch is just more imperative sugaring and control flow. If you want this, Rust isn’t the langauge for you.

Post a comment in response:

(will be screened)
(will be screened if not on Access List)
(will be screened if not on Access List)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting