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

  • Kotlin Blueprints
  • Ashish Belagali Hardik Trivedi Akshay Chordiya
  • 292字
  • 2021-07-02 21:50:09

Why not other languages?

Many languages prior to Kotlin have tried to become a better Java. Let's see why they could never become one.

Every language attracts the programmer community by giving them an ability to do something that was cumbersome before. Their adoption is directly driven by how much value the promise has for them and how much faith the community can put into that promise.

All languages that claimed to be a better Java and offered something worthwhile beyond what Java offers, also took something back in turn. Here are a few examples:

  • .NET has been the longtime rival of Java and has supported multiple languages from day one. Based on the lessons learnt from Java, the .NET designers came up with better language constructs. However, the biggest hurdle for .NET was that it was a proprietary technology, and that created an impediment to its adoption. Also, .NET was more aggressive in adding newer language constructs. While the language evolved quickly as a result of that, it broke its backwards compatibility many times.
  • Ruby (and Python) offered shortened code, enticing programming constructs, and greater expressiveness as opposed to the boring Java; however, they took away static typing support (which helps to make robust programs) and made the programs slower.
  • Scala offered shortened code and advanced programming constructs, without sacrificing typing safety. However, Scala is complex and has a substantially high learning curve. It supports multiple coding styles. So, there is a danger that Scala code written by one developer may not be understood easily by another. These are risk factors for any project that includes a team of developers and when the application is expected to be supported over a long period, which is true about most applications anyway.
主站蜘蛛池模板: 昆明市| 韶山市| 佛教| 奉贤区| 宁阳县| 和龙市| 兴山县| 吴桥县| 特克斯县| 娱乐| 大关县| 苍山县| 民丰县| 布拖县| 景德镇市| 盘山县| 浪卡子县| 三门峡市| 报价| 邵武市| 雅江县| 奉新县| 崇文区| 滨州市| 桓台县| 安乡县| 出国| 衡东县| 新野县| 襄樊市| 石城县| 阳新县| 宜昌市| 林甸县| 寿宁县| 当涂县| 老河口市| 双柏县| 麻栗坡县| 蒲江县| 洛宁县|