Skip to content

Specification: Various integrations from the reference #17383

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

Merged
merged 12 commits into from
May 2, 2023
Merged

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented May 1, 2023

  • Syntax
  • Type lambdas and AnyKind
  • Auto-application
  • Union and intersection types

This is a rebased and polished version of what we did during a "Spec Day" at the Scala Center. Everything was internally reviewed already.

sjrd and others added 12 commits May 1, 2023 13:55
And ensure there is a single EOL at EOF.
This is the same change already applied to docs/_spec in
38e79aa, made here to make it easier to
port changes between docs/_docs and doc/_spec.
Scala 3 changes compared to the existing Scala 2 spec:
- Reusing alphaid in the definition of plainid (this does not change its meaning)
- Addition of quoteId and spliceId
- Correctly specifying the use of _ in numeric literals.
- Dropping symbolLiteral

Scala 2 changes compared to the existing Scala 3 spec:
- Various refactorings
- Specifying the new Unicode escape handling stuff, this was already implemented
  in Scala 3 but not part of syntax.md (see scala#8480).
- Move `auto-apply.md` from TODOreference to APPLIEDreference with minor changes
- Remove the related content from the specification
- Also move the index file `dropped-features.md`
@sjrd sjrd requested a review from julienrf May 1, 2023 12:26
Copy link
Contributor

@julienrf julienrf left a comment

Choose a reason for hiding this comment

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

I am not sure about the changes in docs/_docs/. I thought we would only edit files in docs/_spec.

@julienrf julienrf assigned sjrd and unassigned julienrf May 1, 2023
@sjrd
Copy link
Member Author

sjrd commented May 1, 2023

I am not sure about the changes in docs/_docs/. I thought we would only edit files in docs/_spec.

@smarter Do you want to comment about the changes in docs/_docs/? IIUC they are only aligning with the de facto reality.

@smarter
Copy link
Member

smarter commented May 1, 2023

Yes, they're described in 692b2b3:

Scala 2 changes compared to the existing Scala 3 spec:

@sjrd sjrd merged commit 51bbee0 into scala:main May 2, 2023
@sjrd sjrd deleted the spec-day branch June 14, 2023 07:49
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.

3 participants