2 ms·
But the records wouldn't use variants.
by k__ 9y ago
But the records wouldn't use variants.
- yawaramin 9y agoNope, you can definitely use variants in the records. BuckleScript (the compiler) will automatically convert them into JavaScript-friendly representations. Or you can also pick custom representations for each variant case.
- k__ 9y agoAh, yes if you only go from Reason to JS, becaue Reason is much richer. I was thinking about going from a JS library to Reason, where you basically get bags full of strings.