scala-macro-aop icon indicating copy to clipboard operation
scala-macro-aop copied to clipboard

Can this be ported to Scala 3 / Dotty

Open sirinath opened this issue 5 years ago • 3 comments

@adamw Can this be made into a polished Dotty / Scala 3 implementation? Also perhaps make to more fine-grain so one can use any Scala / Dotty construed as an advice.

This can prove useful.

sirinath avatar Oct 17 '20 10:10 sirinath

I don't think so, there are no macro annotations in Dotty, so instrumenting a whole class is probably impossible. We only have inline + quoting/splicing: https://dotty.epfl.ch/docs/reference/metaprogramming/macros.html

adamw avatar Oct 19 '20 06:10 adamw

What about plugins?

sirinath avatar Oct 19 '20 06:10 sirinath

Good question - I don't know :)

adamw avatar Oct 19 '20 06:10 adamw