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

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.

主站蜘蛛池模板: 蒲江县| 隆林| 永德县| 上饶市| 阿坝| 楚雄市| 合肥市| 丰原市| 庆云县| 沂南县| 西畴县| 马边| 井冈山市| 红桥区| 嘉善县| 大余县| 富锦市| 福泉市| 门头沟区| 定日县| 广丰县| 边坝县| 华亭县| 安达市| 万山特区| 赤城县| 福海县| 锦屏县| 绿春县| 浦城县| 额尔古纳市| 丰县| 彩票| 中阳县| 攀枝花市| 华坪县| 宜阳县| 新巴尔虎左旗| 东阿县| 涿州市| 宜君县|