DEV Community

Discussion on: Why Rust is a great language to learn

Collapse
 
alexandrudanpop profile image
Alexandru-Dan Pop

Yes! One thing I forgot to mention in the article is the functional-style programming that Rust seems to have. You can do FP in Rust, but you can also use imperative programming with side-effects when FP is not possible.

Collapse
 
leob profile image
leob

The only thing that's not there (I've been told) is tail recursion, but for the rest the FP capabilities are quite complete ... but yes you can do imperative & "mutable" too. But the nice thing is that Rust gives you all the tools to do "safe" and "correct" programming, I was amazed at what the compiler can do (as a result the compiler is still noticeably slower than Golang's ...)