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

Beyond being a better Java

We saw that on the JVM platform, Kotlin is neat and quite superior. However, Kotlin has set its eyes beyond the JVM. Its strategy is to win based on its superior and modern feature set.

Before we go ahead, let's list the top five appeals of Kotlin:

  • Static typing (like in C or Java) means that there is built-in type safety. The compiler catches any incorrect type assignments. This makes programs robust.
  • Kotlin is concise and expressive. Being concise implies that there is less to read and maintain. Being expressive implies better maintainability.
  • Being a JVM language, the Kotlin programs can take advantage of the features built into the JVM, such as its cross-platform nature, memory management, high performance and sandbox security.
  • Kotlin has inbuilt null-safety. Null references are famous as the billion-dollar mistake, as admitted by its inventor Tony Hoare and cost a great deal of unnecessary null-checks in programs. Kotlin eliminates those and makes the programs more robust.

Kotlin is easy to learn, especially for Java developers. Its syntax is clean and therefore easy to understand, because of which, Kotlin programs are fun for developers to code and easy to understand, and enhancing for their peers. From a business angle, they are more robust and easy to maintain for businesses.

主站蜘蛛池模板: 栾川县| 肥乡县| 宁阳县| 隆尧县| 遂溪县| 龙南县| 万年县| 宁河县| 左贡县| 平顺县| 三明市| 察隅县| 县级市| 安乡县| 吉木萨尔县| 托克逊县| 新昌县| 浏阳市| 云南省| 屏边| 绥棱县| 万安县| 安陆市| 江北区| 宜阳县| 措勤县| 深泽县| 浙江省| 正蓝旗| 灯塔市| 北川| 聂荣县| 沐川县| 昌乐县| 建阳市| 岢岚县| 三原县| 东安县| 宁陵县| 永吉县| 灵石县|