Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Proposal: production ready scalamacros #30
This proposal is the collaborative effort of many, including members of 47 Degrees, SAP, and Twitter.
I am opening the proposal PR so that we can begin public discussion and make adjustments more easily. For the sake of tracking, I will address feedback with incremental commits which we can squash later, if desired.
getting scala.meta working in the REPL, presentation compiler (i.e. ensime and scalaide) and docs is essential. I basically can't even use the gsoc project I'm mentoring because it just crashes.
Beyond this, having a larger support for for comprehensions is essential for working with async / monadic code. I've had problems with it parsing it incorrectly.
In many ways, I wish scala.meta's parser was the parser. It feels like there is a lot of duplication going on with tree generation.
The note about support for macros on for-comprehensions is specifically for annotation macros. As far as I know, def macros should be able to handle trees for for-comprehensions.
I'd like to qualify the bullet for materializer macros with a reasonable assessment of what can be accomplished and the expected limitations. I'm not qualified enough to make those adjustments, so feedback is certainly welcomed.