Skip to content

Conversation

soronpo
Copy link
Contributor

@soronpo soronpo commented Aug 25, 2025

No description provided.

…ous classes to enhance readability and tooling support in Scala 3's braceless syntax.

- Binary and TASTy: No impact. End markers are purely syntactic sugar for braceless blocks and do not affect emitted bytecode or TASTy semantics.
- Source: Largely backward compatible. The only change is accepting additional `end <id>` and `end new` tokens where previously only a dedentation closed the block. Name-checked markers that do not match will report errors as they do today for definition end markers.
- Tooling: Formatters and IDEs may optionally insert or display these markers; existing code without markers remains valid.
Copy link
Member

@bishabosha bishabosha Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of examples:

  • Metals (via SemanticDB) - references to method symbol to include the new end marker
  • Presentation Compiler? if that also reports symbol occurrences in source files

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