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

Basic language syntax and features

Whether you come from Java, C#, Scala or any other statically typed programming language, you'll find Kotlin syntax quite familiar. This is not by coincidence, but to make the transfer to this new language as smooth as possible for those with previous experience in other languages. Besides that familiarity, Kotlin brings a vast amount of features, such as better type safety. As we move ahead, you'll notice that all of them are attempting to solve real-world problems. That pragmatic approach is very consistent across the language. For example, one of the strongest sides of Kotlin is complete Java interoperability. You can have Java and Kotlin classes alongside each other, and freely use any library that is available in Java for a Kotlin project.

To summarize, the goals of language are as follows:

  • Pragmatism
  • Having clear syntax
  • Being type-safe
  • Interoperability

The first chapter will discuss how these goals are achieved.

主站蜘蛛池模板: 青神县| 德清县| 孝感市| 吴旗县| 镇雄县| 金门县| 临西县| 揭阳市| 民乐县| 和顺县| 吉林省| 宜川县| 竹溪县| 尖扎县| 盐亭县| 河曲县| 扶余县| 平和县| 噶尔县| 寻乌县| 册亨县| 达州市| 景宁| 嫩江县| 梨树县| 宜良县| 南溪县| 大安市| 武威市| 云阳县| 荆州市| 孝义市| 定边县| 宁波市| 商都县| 丰台区| 卢龙县| 安吉县| 通河县| 毕节市| 银川市|