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
Show parent comment
2
u/DeepDay6 Nov 20 '24
With that in mind, you might want to give Clojure+Biff a try; it seems to do exactly what you want.
In a similar spirit, there's Deno+Fresh. JavaScript/TypeScript can be used in a very functional way; you might even want to throw in one of the incredible amount of FP-libraries to write more pure code.
Both focus on the "mostly backend code plus static webpages with 'islands of interactivity'"-approach.