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

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.

主站蜘蛛池模板: 永昌县| 恩施市| 吉木萨尔县| 周口市| 平南县| 黔江区| 如皋市| 阿坝| 长武县| 罗江县| 福清市| 东丽区| 汕尾市| 青冈县| 巧家县| 嘉荫县| 芒康县| 吉林省| 屏山县| 唐海县| 江油市| 哈密市| 中方县| 黔南| 怀柔区| 泗洪县| 自治县| 上饶市| 红桥区| 崇文区| 枣强县| 长子县| 交口县| 桦甸市| 蒲城县| 乐昌市| 莱阳市| 集贤县| 柏乡县| 会泽县| 会理县|