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

6

u/jimmux Nov 20 '24

My first impression of Gleam was that it's C-style because of the curly braces, but after playing with it for a bit, it feels surprisingly close to ML-style. Heavy use of pattern matching, piping, recursion, etc. The dressing becomes incidental.

I get the impression that Gleam is designed to be as low-friction as possible while providing most of the benefits of Elm. Using common syntax conventions helps.