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
I think I have to remove this assumption because in some languages, scientific notation produces a non integer type which are not ===. For example in PHP 1e3 !== 1000 but 1e3 == 1000.
I'm curious what the motivation was behind compiling 1000 into 1e3. I think this could be moved into a minifier stage if the goal was to save some bytes.
The text was updated successfully, but these errors were encountered:
The goal was indeed to save some bytes.
For rehp, you most likely have your own version of string_of_number where you can implement whatever is needed without interfering with javascript, right ?
Why is the number
1000
compiled into1e3
?I think I have to remove this assumption because in some languages, scientific notation produces a non integer type which are not
===
. For example in PHP1e3 !== 1000
but1e3 == 1000
.I'm curious what the motivation was behind compiling
1000
into1e3
. I think this could be moved into a minifier stage if the goal was to save some bytes.The text was updated successfully, but these errors were encountered: