3 ms·
Nope, you can definitely use variants in the records. BuckleScript (the compiler) will automatically convert them into JavaScript-friendly representations. Or y
by yawaramin 9y ago
Nope, 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.