Someone wrote in
diziet
2022-12-23 09:33 am (UTC)
no subject
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.
(
5 comments
)
Post a comment in response:
From:
Anonymous
(will be screened)
OpenID
(will be screened if not on Access List)
Identity URL:
Log in?
Dreamwidth account
(will be screened if not on Access List)
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
no subject
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.