- 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
推薦閱讀
- DevOps:軟件架構師行動指南
- Mobile Web Performance Optimization
- Django開發從入門到實踐
- 算法精粹:經典計算機科學問題的Java實現
- Java程序設計與實踐教程(第2版)
- 微信公眾平臺開發:從零基礎到ThinkPHP5高性能框架實踐
- Oracle從入門到精通(第5版)
- Advanced Express Web Application Development
- 21天學通C++(第5版)
- ExtJS Web應用程序開發指南第2版
- C語言程序設計與應用(第2版)
- Scala Functional Programming Patterns
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- Android從入門到精通
- 數據庫技術及應用教程上機指導與習題(第2版)