8000 Merge pull request #225 from xeno-by/master · jimschubert/scala.github.com@d551215 · GitHub
[go: up one dir, main page]

Skip to content
65F0

Commit d551215

Browse files
committed
Merge pull request scala#225 from xeno-by/master
well actually we can't generate statics as pointed by Simon Ochsenreithe...
2 parents 9193d7b + 1322980 commit d551215

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

overviews/macros/annotations.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ so that I can refine it appropriately. If something doesn't work, let me know <a
2828
Macro annotations bring textual abstraction to the level of definitions. Annotating any top-level or nested definition with something
2929
that Scala recognizes as a macro will let it expand, possibly into multiple members. Unlike in the previous versions of macro paradise,
3030
macro annotations in 2.0 are done right in the sense that they: 1) apply not just to classes and objects, but to arbitrary definitions,
31-
2) allow to introduce static members (i.e. expansions of classes can affect companions).
32-
This opens a number of new possibilities in code generation land, including customizable case classes and better enums.
31+
2) allow expansions of classes can affect companions. This opens a number of new possibilities in code generation land.
3332

3433
In this walkthrough we will write a silly, but very useful macro that does nothing except for logging the annottees.
3534
As a first step, we define an annotation that inherits `StaticAnnotation` and defines a `macroTransform` macro.

0 commit comments

Comments
 (0)
0