官术网_书友最值得收藏!

Summary

In this chapter, we focused on unification. We saw how there is a unification between functions and classes, ADTs, and class hierarchies as well as modules and objects. This allows us to be much more expressive and write cleaner and more efficient code. We also covered what pattern matching is and how it can be used in Scala to write good code.

Some of the concepts covered in this chapter will be useful in the following chapters where we will be implementing concrete design patterns. They can also be used to write good software outside the defined design patterns just because the expressivity of Scala allows it, and this defies the need to do the extra work that design patterns add.

In the next chapter, we will look into abstract and self-types and for what they can be useful.

主站蜘蛛池模板: 定远县| 滦平县| 南阳市| 永州市| 延安市| 元阳县| 津南区| 新乐市| 陵水| 东源县| 雷波县| 昔阳县| 永川市| 丹巴县| 陵水| 清丰县| 饶平县| 吐鲁番市| 贵港市| 满洲里市| 嘉禾县| 手游| 奉节县| 长春市| 共和县| 南昌县| 陆良县| 嵊泗县| 简阳市| 无锡市| 廉江市| 兰考县| 陇西县| 朝阳区| 金坛市| 新安县| 太康县| 宁南县| 手机| 灌云县| 尤溪县|