Hacker News new | ask | show | jobs
by pale-hands 3383 days ago
Will macros work with Scala Native, as they do with ScalaJs? (I believe that compile-time metaprogramming is the way forward, especially if the target doesn't support reflection or dynamic code loading).
2 comments

"We support the whole language including the more advanced features such as method dispatch via structural types and even macros."
D'oh, thanks! Can't believe I missed that.
If i recall correctly, they are planning to (or have already) remove macros in a newer version of Scala.
Yeah, the current macro system will be replaced with scala-meta, which is a different macro system, but it hasn't happened yet. Scala-meta doesn't have def macros yet, so it's not ready.