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

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.

主站蜘蛛池模板: 韶关市| 古浪县| 邵阳县| 凌海市| 巴林右旗| 格尔木市| 平江县| 英超| 保山市| 清远市| 石家庄市| 定州市| 大邑县| 乌兰察布市| 新巴尔虎左旗| 汉中市| 应用必备| 陇西县| 望都县| 新沂市| 华容县| 若羌县| 准格尔旗| 南昌市| 呈贡县| 涞水县| 明光市| 揭西县| 彭州市| 华容县| 中牟县| 高平市| 宁化县| 广昌县| 嘉禾县| 炎陵县| 宜良县| 陆河县| 南康市| 钦州市| 青田县|