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

Understanding types

The type of something is a summation of the information the compiler owns about this something. In the most general case, we're talking about the type of a variable; the knowledge of the compiler includes the methods that are available on this variable and the classes that the variable extends. A very convenient feature of Scala is that it tries to use type inference where possible, freeing the developer from the need to define types explicitly.

Let's take a structured look at Scala's type system, starting with a short recap of its basics.

主站蜘蛛池模板: 米易县| 屏山县| 台北县| 永善县| 拜城县| 高清| 乌拉特中旗| 邻水| 建昌县| 汉沽区| 内江市| 横峰县| 五大连池市| 论坛| 晴隆县| 三穗县| 分宜县| 柯坪县| 临湘市| 通渭县| 吉林省| 吉首市| 潞西市| 遵义县| 基隆市| 敦煌市| 务川| 丁青县| 延安市| 日土县| 淳化县| 陆河县| 荥经县| 博爱县| 电白县| 顺平县| 南汇区| 比如县| 卢湾区| 河池市| 平舆县|