Death to boilerplate with Scala meta
summary
Scala.meta macros are used to eliminate repetitive boilerplate by generating concrete Scala code with quasiquotes for building and pattern‑matching ASTs. They can create companion objects, implicit helpers, and methods with varying arities (for example a Show/string representation for case classes); macros must live in a separate compilation unit, require sbt clean && compile to see generated code, and currently work on Scala 2.11 and 2.12 — demonstrated in the Hamster project.
AI-written summary · about
chapters (12)
- 0:00Scala Meta and macros
- 1:03Macro vocabulary
- 3:41Old vs new macros
- 5:29Simplify macros with Cozycot
- 9:48Scala Explorer symbols
- 11:14Real project example
- 13:43Macro tools and resources
- 14:40Testing macros Q&A
- 16:26Macros in IDE integration
- 17:51Scala Meta macro evolution
- 18:54Macro limits and possibilities
- 20:38Conclusion








