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

37 comments sorted by

View all comments

Show parent comment

2

u/tunerhd Nov 20 '24

What are the main advantages of using effect?

4

u/TalyssonOC Nov 20 '24

I'm a JS/TS programmer and a functional programming enthusiast. Every time I do something with Haskell, or see scalable, type-safe approaches with Scala and other functional languages I miss being able to do the same with TS, and with Effect I can! It's inspired by Scala's ZIO. It leverages the advantages of functional programming to write robust applications

1

u/tunerhd Nov 23 '24

If you have anything, it would be amazing to see practical, real-world approaches.