Alright, let’s start a thread comparing ReasonML vs X:
Poor 2ality’s name got mangled
Most of my experience with other languages predates Reason. I’d love to hear from others. In my experience:
- TypeScript is close to the metal but often challenging to model functional patterns and lacks pattern matching.
- PureScript had clean FFI but more DIY than BuckleScript and even React libraries were composed at confusing levels of abstraction.
- Elm was super easy to dive into but discouraged any FFI, closed to differing levels of abstraction, and lacked naming consistency.
Reason is rad.
- Unlike the aforementioned options OCaml has already been maturing for 20 years.
- It enables Haskell-like levels of abstraction yet hosts a community that wields that power conservatively.
- It includes imperative constructs yet makes functional style the default.
- The compiler is lightning fast.
- Scala.js I haven’t used but Scala 2.8 was my first exposure to FP. It’s very OCaml-inspired with analogous abstractions plus “implicits”. It’s syntax is motivated to be Java-like similar to Reason’s. Unlike OCaml/Reason it feels OOP by default rather than functional first.Their FFI and performance profile look comparable to BuckleScript’s.
Ouch. I can’t edit the post right now. I always thought it’s “to ability” .