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

  • Scala Design Patterns
  • Ivan Nikolov
  • 140字
  • 2021-07-16 12:57:28

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.

主站蜘蛛池模板: 涞源县| 图们市| 白城市| 朝阳市| 望奎县| 宣威市| 洛川县| 鹤峰县| 普兰店市| 志丹县| 牡丹江市| 布尔津县| 苍梧县| 耿马| 汝城县| 密山市| 黎川县| 波密县| 南丰县| 仁化县| 旬阳县| 高清| 荆州市| 申扎县| 磐石市| 宝丰县| 长沙市| 周口市| 盐山县| 玉屏| 阜阳市| 新郑市| 陆河县| 鄱阳县| 集贤县| 扶余县| 西吉县| 班戈县| 威海市| 富锦市| 葵青区|