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

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

主站蜘蛛池模板: 新邵县| 梁平县| 新邵县| 关岭| 西乌珠穆沁旗| 根河市| 汝州市| 新丰县| 富平县| 惠安县| 武宁县| 博罗县| 岳池县| 大余县| 灯塔市| 延长县| 郓城县| 彰武县| 昌宁县| 眉山市| 白山市| 东兴市| 辽源市| 赤壁市| 沂源县| 福鼎市| 洛扎县| 建德市| 广河县| 万年县| 聂拉木县| 密山市| 象州县| 蒲江县| 康保县| 杭州市| 利辛县| 宁乡县| 公安县| 六枝特区| 亳州市|