this post was submitted on 11 Sep 2025
40 points (100.0% liked)
Programming
22695 readers
97 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
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
Rust certainly is an interesting language and very worth learning but, as you already pointed out, can hardly qualify as functional. It has some functional features and a rich type system for sure, but the way you solve problems in rust is mostly just imperatively and very different from the "FP-way" imo. If OP wants to get into FP specifically, I'd suggest picking a different language first.
On another note: Not quite sure why you're saying OCaml ist hard to install, since the setup has been incredibly easy for me. Maybe the process has changed lately (they've been working on improving the tooling with opam and dune) but you can just follow the official installation instructions under https://ocaml.org/install and get it running in like 5 mins. If that doesn't work, there's always wsl.
Personally I'd suggest OCaml, as it's a statically typed, expressive and pragmatic language with a decently sized and mature ecosystem. For learning resources there's the wonderful Cornell book. Elixir is another hot contender and a pleasure to work with, as others have already pointed out. Pick Haskell if you're interested in getting freaky later on and have built some foundational knowledge (personally I enjoyed the haskell mooc but there are other great resources like learn you a haskell for great good too).
It was years ago. So I don't remember what exactly the problem was.
I believe ocaml has a shell interpreter and a compiler right? I managed to get the shell interpreter to work, but I couldn't get one of these to work:
The reason I prefer windows is because things just work. But it was a frustration with ocaml. Meanwhile rust was a single command for the compiler, and a single extension install for the LSP.