I’m trying to figure out what the pros and cons are for converting JS object <-> record (using [@bs.deriving jsConverter]
) or just using the Js.t
type in all of my Reason code. I’m looking to slowly implement parts of our codebase with Reason, and it seems that a record has cleaner syntax and more fully “embraces” ReasonML (immutable, better support for typing etc.).
Obviously there is some overhead for converting types, but it somehow seems more pure to do it this way. Any thoughts?