r/functionalprogramming • • Nov 19 '24
Question Which functional or language with functional features for web dev?
I'm hesitating between Fsharp and Ocaml. I believe Fsharp has a bigger ecosystem but you have to constantly interface with libraries written in C#. Ocaml has probably worse tooling from what I heard and the ecosystem is not mature but you can write more functional code without being boggled down by impure code.
28
Upvotes
View all comments
3
u/npafitis Nov 19 '24
I'm biased but if you want ti have the most reach (be + fe + mobile) then clojure. It's also a lisp, meaning it has unlimited extensibility and metaprogramming, with a very mature webdev ecosystem, and it's a hosted language targetting different platforms, with great interop.
It has the following host implementations:
You can do:
It's one of the most popular languages in industry, other than maybe Scala and now elixir.
Otherwise I'd say either elixir or f#. Where they stand: