3 ms·
Records in ReasonML are represented as arrays. And generated code looks like a human wrote it if humans could remember indices of every property of every type l
by eevilspock 4y ago
Records in ReasonML are represented as arrays. And generated code looks like a human wrote it if humans could remember indices of every property of every type like a compiler does.
So ReasonML is compiled into somewhat obfuscated Javascript that won't be naturally consumable by vanilla Javascript, whereas Typescript transpiles into Javascript with the same API without typings (type erasure).
- davidatbu 4y agoYes, I guess "interoperability with existing and future JS code" is a comparison that favors TS.