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

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.

主站蜘蛛池模板: 珠海市| 托克逊县| 东莞市| 宝应县| 怀仁县| 秦皇岛市| 临沧市| 柳江县| 长汀县| 洛川县| 衢州市| 积石山| 高密市| 关岭| 南宁市| 利辛县| 南木林县| 镇赉县| 玉溪市| 肃宁县| 弋阳县| 凯里市| 浑源县| 牙克石市| 大足县| 博野县| 忻城县| 绥宁县| 东乌| 旌德县| 宁城县| 保德县| 三门县| 白山市| 泗洪县| 鄂托克旗| SHOW| 北京市| 长垣县| 英吉沙县| 饶平县|