Abstract
Scala is a powerful language that supports a variety of fea- tures, but it lacks virtual traits. Virtual traits are class- valued object attributes and can be redefined within sub- traits. They support higher-order hierarchies and family polymorphism. This work introduces virtual traits into Scala and explains how to encode virtual traits on top of existing Scala features. We have implemented this encoding using Scala annotation macros and have conducted two small case studies.
| Zugehörige Institution am KIT | Institut für Programmstrukturen und Datenorganisation (IPD) |
|---|---|
| Sprache | englisch |
| KITopen-ID | 1000188552 |
| Schlagwörter | Family polymorphism, Macros, Virtual classes, Virtual traits |
| Verlag | Association for Computing Machinery (ACM) |
| ISBN des Proceedingsbands | 978-1-4503-2868-5 |
| Veranstaltung | 14th European Conference on Object-Oriented Programming (ECOOP), Uppsala, Schweden, 28. – 29.07.2014 |
| Nachgewiesen in | Scopus Dimensions OpenAlex |