zth / reasonml-q-a

ReasonML Q & A - Questions and answers for everything ReasonML.
https://reasonml-q-a.netlify.com
44 stars 0 forks source link

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

Open baransu opened 4 years ago

baransu commented 4 years ago

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

-