477
Can you code? We need your help to improve lemmy
(beehaw.org)
A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.
Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.
Subcommunities on Beehaw:
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
Scala and Rust don't have that much in common I think. Rust is closer to C++ than to Scala (unless Scala has changed significantly since I last used it years ago).
To be honest when I say a while ago I mean a really long time ago, I remember hearing about it being popular for its functional programming features but also as a C++ replacement and I’ve not kept up since so it might just be the latter now.
Never heard that. Rust is an imperative programming language. It has a few features from functional languages just like C++, Java, etc. have a few functional aspects.
Rust is an imperative programming language with strong functional programming influences. It started out implemented in ocaml.
The main functional programming influences are a strong functional programming-esk type system and heavy use of pattern matching.
The syntax is a bit odd though, neither fully matching C style syntaxes or functional syntaxes like ML or Haskell.
Apparently they’re still an influence according to the docs.
Sure, but I still wouldn't choose Rust if I wanted a functional programming language. Because it's not one. I would pick Haskell or Scala or whatever.
The entire type and class system is basically taken from Haskell
How hard is going from C# to rust? Ngl, I absolutely loath C++ syntax
No matter the language, Rust is just a different beast. You don't do OOP the way you do in C#, so you will have to change your expectation how code is designed. And you will have a very very hard initial (!) learning curve to get used to the borrow checker, which is Rust's biggest strength. It's absolutely worth learning and you will learn something to take "back" to other languages as well. But it's not easy. No matter your background.