adamw / scala-macro-aop

Apache License 2.0
44 stars 9 forks source link

Can this be ported to Scala 3 / Dotty #2

Open sirinath opened 3 years ago

sirinath commented 3 years ago

@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.

adamw commented 3 years ago

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

sirinath commented 3 years ago

What about plugins?

adamw commented 3 years ago

Good question - I don't know :)