Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4071bcb

Browse files
committed
Merge pull request scala#166 from xeno-by/master
macro bundles and compilers, take 2
2 parents 549af61 + dde579a commit 4071bcb

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)