Re:Macros: the Plan for Scala 3
by netvl on Tuesday May 01, 2018 @04:50AM
(#16965462)
This post, as far as I can see, does not mention scala-meta-based macros (project called scalamacros I think) at all. What happened with this direction of macros development? Was it abandoned? Or is the new approach built on it?
[ Parent
| on HN ]
Re:Macros: the Plan for Scala 3
by pale-hands on Tuesday May 01, 2018 @05:31AM
(#16965615)
It seems that scala-meta is alive (http://scalameta.org), but is now about developer tools (e.g. code formatting plugin used by IntelliJ). The macro part of scala-meta was spun off to https://github.com/scalacenter/macros, which is archived and points to Dotty macros as the way forward.
I'll be watching Dotty macros with keen interest, as I have found the current scala macro system very useful despite it remaining experimental. One thing I couldn't do with current macros was provide any kind of generic wrapper around macro methods in the same library, due to the separate compilation pass requirement. I hope this is what staging will address.
Re:Macros: the Plan for Scala 3
by eugene_burmako on Tuesday May 01, 2018 @04:05PM
(#16970947)
Prompted by a similar question on Reddit, I have written a comment on the history, the scope and the status of Scalameta: https://www.reddit.com/r/scala/comments/8g359q/macros_the_pl....