Category macros

Scala Macros Use Case: Teaching Scala

The brand new experimental macro feature in Scala 2.10 can be used in many interesting ways: writing concise test cases, generating serialization code inlining methods This article shows exciting new possibilities it opens up for teaching Scala. To quote one student: “This is so awesome … and fun!”. Exercises are a crucial part of the “Introduction to Scala” training course I developed for German-speaking software engineers. Nobody wants to listen to someone else’s dialog for 8 hours - they want to get a feeling for the new language, try out the new syntax, play around with new features.