- Scala Design Patterns.
- Ivan Nikolov
- 50字
- 2021-08-27 19:09:53
Composing
Composing at creation time gives us an opportunity to create anonymous classes without the need to explicitly define them. Also, if there are many different traits that we might want to combine, creating all the possibilities would involve too much work, so this helps make things easier for us.