8000 macro bundles and compilers, take 2 · danielhopkins/scala.github.com@dde579a · GitHub
[go: up one dir, main page]

Skip to content

Commit dde579a

Browse files
committed
macro bundles and compilers, take 2
something I forgot to commit a minute ago
1 parent 781e68f commit dde579a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

overviews/macros/bundles.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ ask a macro to help it with type inference?
3131

3232
Macro bundles provide a solution to these problems by allowing macro implementations to be declared in traits, which extend
3333
`scala.reflect.macros.Macro`. This base trait predefines the `c: Context` variable, relieving macro implementations from having
34-
to declare it in their signatures, which simplifies modularization.
34+
to declare it in their signatures, which simplifies modularization. Later on `Macro` could come with preloaded callback methods
35+
such as, for example, `onInfer`.
3536

3637
trait Macro {
3738
val c: Context

0 commit comments

Comments
 (0)
0