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
Considering the similarity of both approaches, it should be expected that both underscore semantics are identical and don't differ by such a minor detail.
(It would also help for using parsing methods in the compiler implementation.)
Both integer literals and number parsing methods like
String#to_i
(withunderscore: true
) allow and ignore underscores in the number:The semantics are very similar but there is a difference: Literals allow multiple consecutive underscores, which is an error in
String#to_i
:Considering the similarity of both approaches, it should be expected that both underscore semantics are identical and don't differ by such a minor detail.
(It would also help for using parsing methods in the compiler implementation.)
Originally brought up in #11196 (comment) ff.
The text was updated successfully, but these errors were encountered: