The Scala compiler is a fascinating tool which powers a large proportion of the Guardian’s infrastructure. But sometimes the work that it does can seem somewhat mysterious. Guardian Scala developer Paul Roberts explores in detail one aspect of this mystery and looks at how understanding it can help us write code more effectively