Skip to content

Replace compiletime.code with compiletime.codeOf #10313

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

@nicolasstucki nicolasstucki commented Nov 13, 2020

This new version simply takes an argument and prints its code.
It supports the use-cases the previous code interpolator using simple String.+.

Migration

  • code"$x" -> codeOf(x)
  • code"...$x1...$x2..." -> "..." + codeOf(x1) + "..." + codeOf(x2) + "...

@nicolasstucki nicolasstucki force-pushed the replace-compiletime-code-with-codeof branch from 741a938 to 0852330 Compare November 13, 2020 17:58
@nicolasstucki nicolasstucki marked this pull request as ready for review November 14, 2020 06:55
@nicolasstucki nicolasstucki force-pushed the replace-compiletime-code-with-codeof branch from 0852330 to 5ffba00 Compare November 15, 2020 09:25
This new version simply takes an argument and prints its code.
It supports the use-cases the previous `code` interpolator using simple `String.+`.
@nicolasstucki nicolasstucki force-pushed the replace-compiletime-code-with-codeof branch from 5ffba00 to 3ef9141 Compare November 15, 2020 09:26
@nicolasstucki nicolasstucki merged commit aac4201 into scala:master Nov 16, 2020
@nicolasstucki nicolasstucki deleted the replace-compiletime-code-with-codeof branch November 16, 2020 07:43
@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.

4 participants