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

  • 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.
主站蜘蛛池模板: 汾西县| 呼伦贝尔市| 大石桥市| 筠连县| 雅安市| 乌什县| 庆安县| 通山县| 乃东县| 景东| 玛纳斯县| 西乌珠穆沁旗| 淮滨县| 孟州市| 常熟市| 密山市| 综艺| 本溪| 开江县| 禹城市| 信阳市| 通州市| 宝丰县| 阿拉善右旗| 昔阳县| 台东市| 湄潭县| 筠连县| 榆树市| 望谟县| 长白| 上蔡县| 开江县| 元江| 望奎县| 漳浦县| 乐山市| 蕲春县| 盐津县| 临西县| 鄂托克前旗|