> It manages to be much faster than most dynamic languages ... It would be unfair to compare the performance of Rust and Haskell, because Haskell is optimized for things other than performance.

Hmm...

> When I first started using Rust, I really missed monads.

Option and Result are Monads. Surely he misses do-notation.

> This all being said, I think it is worth looking at the features that are prominent in Haskell that ended up going to Rust ...[list of features that Rust got from SML/ocaml]

Here are the officially stated Rust influences: https://doc.rust-lang.org/reference/influences.html

To say that Rust is a child of Haskell is really overstating the case.

> Option and Result are Monads. Surely he misses do-notation.

Rust does not have higher kinded types, which are required to have abstractions like the Functor and Monad type classes in Haskell.

Option and Result are monadic, but they must implement their own, separate methods and can not share a common interface. Which takes away a lot of expressive power.

There is a accepted proposal for something similar, known as GAT [1] (generic associated types). But that is blocked on other work and might never actually be implemented.

[1] https://github.com/rust-lang/rust/issues/44265

> But that is blocked on other work and might never actually be implemented.

In a theoretical sense, sure, but in a practical sense, my understanding is that GATs already exist in chalk, and so it's still a matter of putting in the work, not a question of "is this possible or not."

I didn't mean to imply that it was impossible.

You would know better of course, but it was my impression that there is no firm commitment to stabilizing GAT, even once the compiler fully switches to Chalk, due the potential disruptiveness and complication of the language.

(For those unaware: Chalk is a rewrite of the trait logic in rustc, based on logic programming [1] )

[1] https://github.com/rust-lang/chalk