by wk_end · 6y ago · 0 comments
I don't think js_of_ocaml supports any kind of JSX. That's the only real reason to use Reason over OCaml that I know of, and it's a good one. But if I'm being frank, even if OCaml/Reason is a nicer language overall, TypeScript is a statically-typed frontend development story that has way more community buy-in and way fewer rough edges in the ecosystem. Just use it.
The recent syntax switch[1] does feel like it will further fragment the community.
And TypeScript has some pretty attractive functional projects:
https://github.com/gcanti/fp-ts
From what I have seen, there seems to be little buy-in for Reason in the Ocaml community which is not particularly surprising considering it's supposed to solve a pain point no one in the community actually has (Ocaml syntax is fine - it's obviously more Algol-like than C-like but clearly the existing community doesn't care).
Reason seems to be mostly pushed by Facebook towards Javascript developers. That might work. Then again, esy is nice.