Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 13, 2021

A - followed by a number is considered a literal only if there are no spaces
between the sign and the first digit.

Also, some simplifications how negative numbers are parsed.

A `-` followed by a number is considered a literal only if there are no spaces
between the sign and the first digit.

Also, some simplifications how negative numbers are parsed.
@odersky
Copy link
Contributor Author

odersky commented May 13, 2021

@odersky
Copy link
Contributor Author

odersky commented May 23, 2021

On reflection, it’s not worth to change things wrt to Scala 2. So we’ll leave it as it is.

@odersky odersky closed this May 23, 2021
@som-snytt
Copy link
Contributor

I was prepared to backport because it's a small change and it's good puzzler territory or as they say in french terroir.

Also the alignment with leading infix was elegant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants