News for hackers. Stuff that matters.

scalamacros

Re:Project for bringing macros to Scala on Thursday November 10, 2011 @07:45PM (#3222755)
You might be interested in reading my first talk about macros: http://scalamacros.org/talks/2011-09-27-ProjectKepler.pdf and taking a look at the newly posted use cases: http://scalamacros.org/usecases/index.html. If you get stuck, comment here or mail me at [email protected] - I will explain the unclear stuff.
Re:Project for bringing macros to Scala on Thursday November 10, 2011 @07:42PM (#3222743)
This is a very valid concern, and we keep it in mind. Several really fancy ideas were rejected simply because that added too much complexity or could get out of hand quickly. That's why, for one, the main page of the project says that "Scala macros ... cannot change syntax of Scala".

Some people from our team do have a painful experience with Lisp-style macros, so we try especially hard to find a minimally useful yet conceptually clean approach to compile-time metaprogramming (we are sure, though, that this sweet spot exists).

And that's why we stress the importance of feedback and appreciate it. Thanks for sharing your thoughts!

Re:Project for bringing macros to Scala on Thursday November 10, 2011 @07:31PM (#3222707)
Thanks for pointing out the weak spots of the content!

We've posted several compelling use cases enabled by macros (http://scalamacros.org/usecases/index.html) and added some more information to the main page that uncovers the inner beauty of the examples.

Btw, we realize the responsibility of adding a competely new feature to Scala, so every new macro-related idea is being weighed against the complexity it brings to the table. So far we've done away with several really interesting prospects in order to keep the overall proposal simple.