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 did some work on improving ints and floats, especially converting them from partials and supporting negatives. This issue describes the remaining work to do.
Negatives are supported in expressions but not patterns.
In patterns, if you have a variable with an int in it (x2), you can delete chars until you get an int (2) but it's a variable not an int!
Floats are allowed be not fully filled in (eg 0., or .0) but there's no consistency: sometimes they're partials (when typing), sometimes they stay as floats (when backspacing).
I think it would be good to fixup these weird-but-allowed representations when users click away from a handler (as opposed to disallowed which are fixed and reported).
I think to would be good to use partials for edge cases in ints and floats as well:
too big ints (right now these are converted to the max int64, which is weird)
just a "-"
just a "."
this would mean introducing a pattern partial
The text was updated successfully, but these errors were encountered:
I did some work on improving ints and floats, especially converting them from partials and supporting negatives. This issue describes the remaining work to do.
Negatives are supported in expressions but not patterns.
In patterns, if you have a variable with an int in it (
x2
), you can delete chars until you get an int (2
) but it's a variable not an int!Floats are allowed be not fully filled in (eg
0.
, or.0
) but there's no consistency: sometimes they're partials (when typing), sometimes they stay as floats (when backspacing).I think it would be good to fixup these weird-but-allowed representations when users click away from a handler (as opposed to disallowed which are fixed and reported).
I think to would be good to use partials for edge cases in ints and floats as well:
The text was updated successfully, but these errors were encountered: