reasonml-q-a icon indicating copy to clipboard operation
reasonml-q-a copied to clipboard

When someone should use records, object or Js.t?

Open baransu opened this issue 5 years ago • 0 comments

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.

Further reading

baransu avatar Feb 15 '20 20:02 baransu