DEV Community

Discussion on: Why Rust is a great language to learn

Collapse
 
leob profile image
leob • Edited

I've toyed a bit with Rust and really liked its "FP" (functional programming) feel - I was surprised how many things in Rust reminded me of Haskell. It's a very subtle and elegant language, much more so IMO than Golang. I'm more interested in those kind of features, which allow you to raise the abstraction level and write succinct software, than in its low level "system" capabilities a la C++.

It would be interesting to see how it works if you develop a complete web app in Rust - backend and frontend - and compare that to developing a complete web app (backend + frontend) in JS or TS. As another commenter said, as it evolves further it might even become a viable alternative for "scripting" languages for this kind of task.

But I'm not really holding my breath for its market share in the jobs or projects marketplace, looks like it's going to remain niche for the foreseeable future. Pity because I do think it's one of the nicer and better languages.

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 ...)