```res let v = 1e ``` emits ```js var v = 1e; export { v , } ``` which is invalid in JS.
Activity
cknitt commentedon Sep 5, 2024
Same for
(or similar with any number of underscores)
cknitt commentedon Sep 5, 2024
BTW, also a bit weird (but all valid JS):
cometkim commentedon Sep 5, 2024
I think the correct resolution is
cknitt commentedon Sep 6, 2024
Agreed!
Also, at the moment, you can basically do whatever you want underscore-wise, e.g.
compiles to
(FWIW this seems to be the case in OCaml, too.)
cometkim commentedon Sep 6, 2024
Lol, that's how we supported (superset of?) JS numeric separators