The Nature of the Language

In this introductory lesson, we'll take a look at the purpose of ReasonML.

The Bridge Between OCaml and JavaScript

ReasonML, also known simply as Reason, was developed in 2016 by Facebook. It provides a new syntax and toolchain for the meta-language, OCaml. OCaml is an extremely efficient industrial-level language which focuses on type-driven functional programming and code optimization.

The purpose of Reason is to compile OCaml into JavaScript through the BuckleScript language. Bucklescript’s syntax simply allows us to translate OCaml into clean and efficient JavaScript. This is why Reason adopts BuckleScript.

Get hands-on with 1400+ tech skills courses.