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

Integrate macro paradise under -Ymacro-annotations #6606

Merged
merged 1 commit into from
May 10, 2018

Commits on May 8, 2018

  1. Integrate macro paradise under -Ymacro-annotations

    Importing from scalamacros/paradise, since xeno-by has stepped down
    as maintainer. Since the eco-system has come to rely on macro paradise,
    we acknowledge the status quo by integrating paradise.
    
    HOWEVER, please note that support for macro annotations remains
    EXPERIMENTAL, and support for them will be much more restricted
    in Scala 3. We will try to provide a preview of this subset in 2.14.
    
    Most notably, we do not intend to let macro annotations
    synthesize code that is visible during synthesis. Concretely,
    you'd have to first compile the macros, then the code that
    uses them as annotations, and finally the code the needs to
    see the code synthesized by the annotation macros. This is
    the same workflow as usual with code generation.
    
    The tests are included as a new project (macroAnnot),
    which uses the quick compiler as a scalaInstance to compile
    the tests, so that we could integrate the test suite more easily.
    
    Finally, note the diff re: `List toStream flatMap headOption`:
    its behavior changed with the new collections.
    adriaanm committed May 8, 2018
    Configuration menu
    Copy the full SHA
    50077e9 View commit details
    Browse the repository at this point in the history