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

Document alternatives to macro annotations #19

Open
jto opened this issue Jul 1, 2020 · 2 comments
Open

Document alternatives to macro annotations #19

jto opened this issue Jul 1, 2020 · 2 comments

Comments

@jto
Copy link

jto commented Jul 1, 2020

Scala 3 won't support macro annotation, which will break a number of open-source libraries.

AFAIK there is no "official" documented alternative and the only solution currently being tested by the community is to generate code using Scalafix (see simulacrum-scalafix).

The migration guide should offer alternatives to macro annotations.

@adpi2
Copy link
Member

adpi2 commented Jul 1, 2020

I think you are right there is no alternative in Dotty for macro annotation.

Thank you for pointing us to simulacrum-scalafix! I will take a closer look at it.

@adpi2
Copy link
Member

adpi2 commented Sep 24, 2020

Alternatives can be:

  • type class derivation
  • dotty compiler plugin (example, doc)
  • scalafix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants