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

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

主站蜘蛛池模板: 昌吉市| 瓦房店市| 苏尼特左旗| 左云县| 河曲县| 南投市| 抚顺市| 杭州市| 互助| 开原市| 雅安市| 永清县| 炉霍县| 彰化县| 乌兰浩特市| 中宁县| 林口县| 贵州省| 五峰| 红安县| 乌审旗| 墨脱县| 西乡县| 鄂尔多斯市| 徐闻县| 濮阳市| 平江县| 莱州市| 惠安县| 东乡| 阜平县| 曲沃县| 西盟| 古交市| 离岛区| 大邑县| 和平区| 湘潭市| 中超| 姜堰市| 息烽县|