You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, this is not correct. We need a string "100", not an int 100. But this can not be represented as an enum / polymorphic variant (#"100" just gets reformatted to #100, and as far as I can see it is not currently possible to represent the difference in the AST).
We could use an abstract type + an @obj external make with the @string annotation instead, but this usage of @string is likely to get deprecated in ReScript 11, too.
Any other ideas?
The text was updated successfully, but these errors were encountered:
In master, we have
Unfortunately, this is not correct. We need a string
"100"
, not an int100
. But this can not be represented as an enum / polymorphic variant (#"100"
just gets reformatted to#100
, and as far as I can see it is not currently possible to represent the difference in the AST).We could use an abstract type + an
@obj external make
with the@string
annotation instead, but this usage of@string
is likely to get deprecated in ReScript 11, too.Any other ideas?
The text was updated successfully, but these errors were encountered: