While building rescript code, I found some functions have a $$
prefix on the js output. In my case, it was Js.Float.isFinite.
What’s the $$ meaning for? Are there any options or methods not to add these prefixes?
$$ prefixes are used as keyword ambiguity prevention in Js.
E.g “let default = …” in ReScript will be compiled to “const $$default”
1 Like
Oh, thanks for the reply! never thought of that.
in this case, should gentype respect the prefixed name? the name of the generated type is original(non-prefixed), but the js isn’t.
in this case, should gentype respect the prefixed name? the name of the generated type is original(non-prefixed), but the js isn’t.
Yes, it should. That sounds like a bug
1 Like