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

Laying a Foundation

This chapter is largely devoted to the fundamental building blocks that are core elements of the Kotlin programming language. Each one may seem insignificant by itself, but combined together, they create really powerful language constructs. We will discuss the Kotlin type system that introduces strict null safety and smart casts. Also, we will see a few new operators in the JVM world, and many improvements compared to Java. We will also present new ways to handle application flows and deal with equality in a unified way.

In this chapter, we will cover the following topics:

  • Variables, values, and constants
  • Type inference
  • Strict null safety
  • Smart casts
  • Kotlin data types
  • Control structures
  • Exceptions handling
主站蜘蛛池模板: 儋州市| 普宁市| 彭泽县| 襄城县| 方正县| 贵阳市| 乐清市| 肥乡县| 木兰县| 北海市| 台中县| 玉林市| 高青县| 合山市| 邵阳市| 家居| 乐山市| 松原市| 司法| 顺义区| 迁安市| 南岸区| 渑池县| 宣威市| 平邑县| 浮梁县| 喀喇沁旗| 新乐市| 兴业县| 松溪县| 沈阳市| 龙井市| 汉阴县| 松阳县| 曲麻莱县| 南雄市| 高邑县| 溧水县| 水城县| 广东省| 黎平县|