this post was submitted on 08 Jun 2023
479 points (100.0% liked)
Technology
37745 readers
498 users here now
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.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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