4 ms·
In my (limited) experience with people who tried to learn Rust with a predominantly C++ background mostly struggle with trying to shoehorn some OOP design, when
by spoiler 6y ago
In my (limited) experience with people who tried to learn Rust with a predominantly C++ background mostly struggle with trying to shoehorn some OOP design, when the language has other idioms better auite to it.
Rust does have a lot of nice ideas borrowed (hehe) from functional programming, but it's far from being FP!
On a tangent: you're comment about learning a FP before learning Rust is great advice, but not for the reasons you initially intended perhaps. Learning FP in general is great, since it teaches you a different way of thinking from the "classical" way programmers think. So, it's great to learn FP for anyone, regardless of whether it's for Rust's sake (it will help a bit with reasoning about some Rust concepts and idioms, though), or not.
- v8dev123 6y agoGraydon Hoare is a OCaml developer. Graydon Hoare mentions Rust as linear ML in C++ clothing. https://twitter.com/graydon_pub/status/1154476823557754880 https://twitter.com/graydon_pub/status/1154476823557754880 I empathized the can't deny relationship between Rust and FP. It doesn't means Rust is a pure FP language. I always said same thing about C++ templates too.