Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReasonML vs Scala.js

So by reading the reasons why facebook choose OCaml to create Reason, I couldn't stop noting that Scala met all the requirements too. I'm not biased whatsoever, I know Scala, but I'm not a die hard scala advocate. I just like a nice type system, so in this point I'm finding really hard to choose between those two for my next project. So what are the real trade offs here?

like image 528
Alejandro Navas Avatar asked Feb 16 '18 09:02

Alejandro Navas


1 Answers

Reason react can do per file compilation so it’s easy to slip into an existing project. Scala.js allows you to tap into scala libs and the scala ecosystem. If you only focus on web it’s probably best to stick with what Facebook offers. I have computations that i do and for that Scala and non-ocaml tools are more helpful. Since you already know scala, you can use the reason-react model by using a library I put together at https://github.com/aappddeevv/scalajs-react.

like image 116
user1763729 Avatar answered Nov 13 '22 02:11

user1763729