This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Numeric poly var support #340
Closed
Description
Note we are planning to provide numeric poly var support so that
#"1"
is going to be compiled as 1 instead of "1"
Ideally, we should allow user to write #1
directly since it is compiled to 1 instead of "1"
Some more context are provided here: rescript-lang/rescript#5026
For the formal rules it would be:
# 0
# [1-9][0-9]*
Also an extra overflow check is needed