Skip to content

Move internal Expr and Type implementations into the compiler #10249

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

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki self-assigned this Nov 9, 2020
@nicolasstucki nicolasstucki force-pushed the move-internal-expr-type-in-compiler branch from 4dc0f53 to 2c5072e Compare November 9, 2020 17:48
@nicolasstucki nicolasstucki marked this pull request as ready for review November 9, 2020 21:16
@@ -1,17 +1,19 @@
package scala.internal.quoted
package scala.quoted.internal
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put the implementation in a package e.g. dotty.tools.dotc.quotes or dotty.tools.dotc.meta?

I think it's better to not have the compiler contain a subpackage of a stdlib package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They need to be inside of the scala package to be able to extend the Expr and Type. Those have private[scala] constructors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was the solution agreed in the meeting to avoid the need to move the compiler into the scala package.

@nicolasstucki nicolasstucki merged commit 0700573 into scala:master Nov 10, 2020
@nicolasstucki nicolasstucki deleted the move-internal-expr-type-in-compiler branch November 10, 2020 15:39
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
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