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

  • 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.

主站蜘蛛池模板: 新竹县| 梁山县| 延庆县| 灵寿县| 罗江县| 吉安县| 平阳县| 山东| 安宁市| 安新县| 仙游县| 常德市| 铁岭县| 凌云县| 邢台县| 衢州市| 临沭县| 巴青县| 彭阳县| 柏乡县| 香河县| 克山县| 曲阜市| 东方市| 东安县| 长乐市| 普陀区| 农安县| 崇州市| 丹棱县| 景洪市| 东方市| 石台县| 新闻| 井陉县| 秦安县| 自贡市| 古田县| 芮城县| 习水县| 南澳县|