Ranked in these QuestionsQuestion Ranking
Pro Superior type inference
Ocaml type inference is so smart that you never have to repeat yourself and keep code very clean, type errors also are very pleasant
Pro Immutability with escape hatches
reason includes true immutability, but it has escape hatches to let you use mutations in exceptional cases.
The same reasonml code can compile to js (eg. run on browsers or node.js, use any lib in npm), or compile to assembly thru ocaml (unless of course you load js externals), running on any device, with C-comparable (or better) performance.
Pro JSX syntax natively supoorted
reason was created by the creator of react, for developers already using JSX to template web or native UIs this results very familiar
Pro Writen in Crystal (Language)
Crystal is one of the best and elegant languages.
Pro Constructs for synchronous and asynchronous computations
Pro Easy to learn and write
Everything is an expression.
Pro HTML and CSS integration
HTML can be written with minimal differences.
Scoped .CSS can be written for elements in components.
Pro Good error support
200+ unique error messages to help you on the way.
Pro Everything is typed
Everything is typed using a simple type system
Pro Dead code elimination
Only used parts of the code compiles into the final bundle.
Pro Built-in formatter
Mint has a built-in formatter to format your code, it can run standalone or with the development server.
Pro Batteries included
Mint contains everything you need to build the frontend of web applications from styling to data storage through HTTP requests to testing.
Pro Integrated testing
Testing is part of the language and there is a test runner built in which runs tests in the browser.
Con A standard async syntax is pending
Async syntax is not standard across native/js projects and in both cases a bit awkward for non-ocaml devs. Currently this is reasonml most voted issue in their GitHub repo so hopefully, there's news soon.