Re:Switching from C++ to Rust
by rayiner on Monday March 13, 2023 @11:16PM
(#35146956)
A nice thing about Rust is that it brings many well established good ideas from the ML branch of languages to the curly brave branch of languages. And frankly does a better job naming them (for people who weren’t math majors).
[ Parent
| on HN ]
Re:Switching from C++ to Rust
by chippiewill on Tuesday March 14, 2023 @08:23AM
(#35150316)
A monad is just a monoid in the category of endofunctors.
Seriously though, calling Algebraic Data Types an Enum was a stroke of genius.
Re:Switching from C++ to Rust
by japanuspus on Tuesday March 14, 2023 @09:27AM
(#35151125)
Completely agree. This article [0] by Raphael Poss, explicitly listing how functional constructs look in Rust compared with "pure" functional languages is one of my favorite takes on Rust.
[0]: https://dr-knz.net/rust-for-functional-programmers.html