![Scala Design Patterns.](https://wfqqreader-1252317822.image.myqcloud.com/cover/27/36700027/b_36700027.jpg)
上QQ阅读APP看书,第一时间看更新
Increased expressivity
As you can see from the examples, unifying classes and functions leads to increased expressivity and we can easily achieve various things such as callbacks, lazy parameter evaluation, centralized exception handling, and others, and without writing extra code and logic. Moreover, functions as classes mean that we can extend them to provide extra functionality.