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

Add scala.quoted.Liftables to the stdlib #6928

Merged
merged 10 commits into from
Jul 26, 2019

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki changed the title Add quoted.Liftable[List[T]] to the stdlib Add liftables to the stdlib Jul 24, 2019
@nicolasstucki nicolasstucki changed the title Add liftables to the stdlib Add scala.quoted.Liftables to the stdlib Jul 24, 2019
@nicolasstucki nicolasstucki self-assigned this Jul 24, 2019
@nicolasstucki nicolasstucki removed their assignment Jul 24, 2019
@nicolasstucki nicolasstucki requested review from liufengyun and removed request for biboudis July 24, 2019 16:55
@nicolasstucki nicolasstucki marked this pull request as ready for review July 24, 2019 16:55
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

library/src/scala/quoted/Liftable.scala Outdated Show resolved Hide resolved
library/src/scala/quoted/Liftable.scala Show resolved Hide resolved
given [T1: Type: Liftable] as Liftable[Tuple1[T1]] = new {
def toExpr(tup: Tuple1[T1]) =
'{ Tuple1(${tup._1.toExpr}) }
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: maybe still write new Liftable[...] to be consistent and explicit as above, the same for the code below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It got way too long and made it harder to read.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@nicolasstucki nicolasstucki merged commit 746653e into scala:master Jul 26, 2019
@nicolasstucki nicolasstucki deleted the add-liftables-to-stdlib branch July 26, 2019 11:08
@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.

3 participants