Abstract
Traits in general allow types to be constructed based on existing implementations that are mixed together to provide the resultant interface and implementation. Stacking such traits extends this concept further allow traits to extend behaviour as well as define it.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Reference
Kiczales, G., Lamping, J., Mehdhekar, A., Maeda, C., Lopes, C. V., Loingtier, J., & Irwin, J. (1997, June). Aspect-oriented programming. In Proceedings of the European Conference on Object-Oriented Programming (ECOOP), Springer LNCS, 1241.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Hunt, J. (2013). Stackable Traits. In: Scala Design Patterns. Springer, Cham. https://doi.org/10.1007/978-3-319-02192-8_11
Download citation
DOI: https://doi.org/10.1007/978-3-319-02192-8_11
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-02191-1
Online ISBN: 978-3-319-02192-8
eBook Packages: Computer ScienceComputer Science (R0)