Reputation: 9521
I'm reading metaprogramming manual on Scala 3 and didn't find quasiqotes that I heavily use in my current project. What is the alternative for deconstructuring trees like that:
def impl(c: blackbox.Context): c.Expr[Unit] = {
import c.universe._
val someTree = //...
someTree match {
case typedef @ q"$mods type $name[..$tparams] >: $low <: $high" =>
//...
}
}
How to port such code with tree deconstructioning to Scala 3?
Upvotes: 3
Views: 595