Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spec for a leading infix operator needs clarification #17593

Open
eed3si9n opened this issue May 25, 2023 · 1 comment
Open

Spec for a leading infix operator needs clarification #17593

eed3si9n opened this issue May 25, 2023 · 1 comment

Comments

@eed3si9n
Copy link
Member

Compiler version

3.2.2.

Steps

Problems

  1. Scala 3 Syntax Summary page does not mention about he leading infix operator.
  2. Rules for Operators page uses terms like symbolic operator/identifier/names, but they are undefined.

Expectation

  1. Scala 3 Syntax Summary should include a summary of leading infix operator rules.
  2. Scala 3 Syntax Summary should define symbolic operator/identifier/names.
  3. Rules for Operators page should also define symbolic operator/identifier/names.

Notes

Based on the implementation of isOperator https://github.com/lampepfl/dotty/blob/3.3.0/compiler/src/dotty/tools/dotc/parsing/Scanners.scala#L87-L89, I am assuming that symbolic operator/identifier/names is defined to be:

  1. A backticked identifier
  2. An identifier whose last character is an op character
@eed3si9n eed3si9n added stat:needs triage Every issue needs to have an "area" and "itype" label area:documentation labels May 25, 2023
@som-snytt
Copy link
Contributor

I always intended to check the feature in -Xsource:3, as the implementations necessarily diverged.

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

No branches or pull requests

3 participants