4 ms·
It's been years (7? 8? geez) since I've written Scala but has macro support really died out? Is this a 2 vs 3 thing? I remember loving it and saw a plenty of
by stusmall 4y ago
It's been years (7? 8? geez) since I've written Scala but has macro support really died out? Is this a 2 vs 3 thing?
I remember loving it and saw a plenty of other community libraries leaning on it. I had some simple reflection based code I rewrote using macros for a big performance bump. The API was awkward and forced me to learn more of the magic under the covers, but in the end I was happy with it. I figured it would be too deeply ingrained and useful to just go away.
- philipkglass 4y agoThey have not gone away in Scala 3. They are better documented now and better supported. https://docs.scala-lang.org/scala3/guides/macros/macros.html https://docs.scala-lang.org/scala3/guides/macros/macros.html However, the macros changed enough that it can be a significant effort to port macro-heavy code to Scala 3 from 2.x. I see comments about this in the issue trackers of some libraries I use.