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

Re-contextualize Liftable.toExpr #6924

Merged

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Jul 24, 2019

Redefine Liftable.toExpr as def toExpr(x: T): given QuoteContext => Expr[T].
This change makes it simpler to implement Liftable as the return type can be omitted.

Extracted from #6881 where this change aligns with the new quotes internal representation.

@nicolasstucki nicolasstucki self-assigned this Jul 24, 2019
Redefine `Liftable.toExpr` as `def toExpr(x: T): given QuoteContext => Expr[T]`.
This change makes it simpler to implement `Liftable` as the return type can be omitted.
@nicolasstucki nicolasstucki force-pushed the recontextualize-liftable-toexpr branch from ddc12dd to 2425707 Compare July 24, 2019 12:24
@nicolasstucki nicolasstucki marked this pull request as ready for review July 24, 2019 13:15
Copy link
Contributor

@anatoliykmetyuk anatoliykmetyuk left a comment

Choose a reason for hiding this comment

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

Nice, the code is more concise now!

@anatoliykmetyuk anatoliykmetyuk merged commit 7247651 into scala:master Jul 24, 2019
@anatoliykmetyuk anatoliykmetyuk deleted the recontextualize-liftable-toexpr branch July 24, 2019 13:42
@anatoliykmetyuk anatoliykmetyuk added this to the 0.18 Tech Preview milestone Aug 28, 2019
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.

None yet

2 participants