- 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.
推薦閱讀
- 黑客攻防從入門到精通(實戰(zhàn)秘笈版)
- 數(shù)據(jù)結構和算法基礎(Java語言實現(xiàn))
- 深入淺出Windows API程序設計:編程基礎篇
- INSTANT Django 1.5 Application Development Starter
- Yocto for Raspberry Pi
- C語言程序設計
- 編程菜鳥學Python數(shù)據(jù)分析
- Unity 3D腳本編程:使用C#語言開發(fā)跨平臺游戲
- Spring+Spring MVC+MyBatis從零開始學
- JavaScript腳本特效編程給力起飛
- Go語言編程
- Azure Serverless Computing Cookbook
- 計算機應用基礎教程(Windows 7+Office 2010)
- Mastering SciPy
- DevOps 精要:業(yè)務視角