- Learn Scala Programming
- Slava Schmidt
- 112字
- 2021-06-10 19:35:45
Types – all the way down
Up until now, we have only talked about concrete types. Despite being quite simple, they already allow for the expression of a lot of properties of a program on the type level and they have these properties verified at compile time. Scala gives the developer even more freedom by allowing them to use types as parameters while defining methods, classes, or other types. In the next section, we will look at different ways to do this, starting with basic type parameters and type member definition, and continuing with type constraints and variance topics. We'll conclude our discussion with higher kinded types and type lambdas.
推薦閱讀
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- 零基礎搭建量化投資系統:以Python為工具
- Oracle數據庫從入門到運維實戰
- Python應用輕松入門
- Full-Stack Vue.js 2 and Laravel 5
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- Hands-On Swift 5 Microservices Development
- Java網絡編程核心技術詳解(視頻微課版)
- 好好學Java:從零基礎到項目實戰
- 微信小程序開發與實戰(微課版)
- 區塊鏈技術進階與實戰(第2版)
- Qlik Sense? Cookbook
- C++ Application Development with Code:Blocks
- Java EE Web應用開發基礎
- 深入實踐DDD:以DSL驅動復雜軟件開發