- Learn Scala Programming
- Slava Schmidt
- 119字
- 2021-06-10 19:35:52
Getting to Know Implicits and Type Classes
We are already familiar with two cornerstones of Scala—its type system and first-class functions. Implicits is the third one. Implicits enable elegant designs and probably no state-of-the-art Scala library is possible without them.
In this chapter, we will start with a systematic overview of different types of implicits and recap the implicit scope resolution rules. After taking a short look at context bounds, we'll move on to type classes, the central implementation mechanism that's utilized in modern functional programming libraries.
The following topics will be covered in this chapter:
- Types of implicits
- Context bounds
- Type classes
- Type classes and recursive resolution
- Type class variance
- Implicit scope resolution rules
推薦閱讀
- Web程序設計及應用
- Learning Cython Programming(Second Edition)
- Hands-On Image Processing with Python
- Learning ASP.NET Core 2.0
- 技術領導力:程序員如何才能帶團隊
- 一本書講透Java線程:原理與實踐
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- Hands-On Neural Network Programming with C#
- 邊玩邊學Scratch3.0少兒趣味編程
- Mastering SciPy
- IBM RUP參考與認證指南
- 深入理解Java虛擬機:JVM高級特性與最佳實踐
- MySQL核心技術與最佳實踐
- Expert Cube Development with SSAS Multidimensional Models
- 面向物聯網的Android應用開發與實踐