reasonml-q-a
reasonml-q-a copied to clipboard
When someone should use records, object or Js.t?
Question
In Reason exists few ways to create key-value data structure: records, object, and Js.t (JavaScript objects only existing in BuckleScript). When someone wants to start using Reason, can be confused with all those options and their pros and cons. In addition to that since the latest versions of BuckleScript records are represented in runtime as JavaScript objects which makes Js.t
kind of redundant.
When someone should use records, object or Js.t?
Answer
This question hasn't been answered yet.