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

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.

主站蜘蛛池模板: 麦盖提县| 十堰市| 特克斯县| 南江县| 利辛县| 鲁山县| 信阳市| 安徽省| 陈巴尔虎旗| 洪湖市| 屏南县| 郴州市| 缙云县| 灌南县| 突泉县| 九龙城区| 伊宁市| 昌宁县| 江达县| 胶南市| 阳江市| 额尔古纳市| 棋牌| 黄陵县| 久治县| 台州市| 兴仁县| 措美县| 酒泉市| 巴中市| 宁安市| 福海县| 德阳市| 新干县| 榆林市| 泰安市| 张北县| 本溪| 随州市| 南阳市| 桦川县|