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
In Rust, underscores can be inserted in numeric literals to improve readability, e.g. 1_000 is the same as 1000, and 0.000_001 is the same as 0.000001. This can be especially helpful for large binary and hex literals, e.g. 0b0101000100001001 vs. 0b0101_0001_0000_1001.
Supporting this would be a pretty minor change to the grammar and lexer, and would be backwards compatible (i.e. it would not break currently working code).
The text was updated successfully, but these errors were encountered:
In Rust, underscores can be inserted in numeric literals to improve readability, e.g.
1_000
is the same as1000
, and0.000_001
is the same as0.000001
. This can be especially helpful for large binary and hex literals, e.g.0b0101000100001001
vs.0b0101_0001_0000_1001
.Supporting this would be a pretty minor change to the grammar and lexer, and would be backwards compatible (i.e. it would not break currently working code).
The text was updated successfully, but these errors were encountered: