基于 JVM 的編程語言,Kotlin M13 發布

jopen 9年前發布 | 7K 次閱讀 Kotlin

Kotlin 是一個基于 JVM 的新的編程語言,由 JetBrains 開發。

其主要設計目標:

  • 創建一種兼容Java的語言

    </li>

  • 讓它比Java更安全,能夠靜態檢測常見的陷阱。如:引用空指針

    </li>

  • 讓它比Java更簡潔,通過支持variable type inference,higher-order functions (closures),extension functions,mixins and first-class delegation等實現。

    </li>

  • 讓它比最成熟的競爭對手Scala語言更加簡單。

    </li> </ul> Kotlin M13 發布,此版本更新內容如下:

    • Compiler daemon for faster compilation;

      </li>

    • lateinit properties to support dependency injection and other frameworks;

      </li>

    • sealed classes for expressing closed hierarchies;

      </li>

    • Specifying and checking annotation targets;

      </li>

    • Java get/set pairs are now seen as properties in Kotlin;

      </li>

    • Better type safety for Java interop: taking @NotNull annotations into account (see this blog post);

      </li>

    • Modifiers and annotations have been separated syntactically (see this blog post);

      </li>

    • Fully functional reflection on classes, functions and properties;

      </li>

    • Access to internal is now checked outside of a module (details below);

      </li>

    • New .class file layout for top-level functions and properties;

      </li>

    • and more (see below)

      </li> </ul>

      詳細改進請看發行說明

      同時發布了 Kotlin Eclipse Plugin 0.3.0,此版本新特性:

      • Kotlin M13 支持

        </li>

      • 查找手冊

        </li>

      • 參數提示

        </li>

      • 選擇 enclosing/next/previous 元素

        </li>

      • Override/Implement action

        </li>

      • Body conversion intention

        </li>

      • Debugger: Run to cursor

        </li>

      • Debugger: Step into selection

        </li>

      • 性能提升

        </li> </ul> 來自:http://www.oschina.net/news/66535/kotlin-eclipse-plugin-0-3-0

         本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
         轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
         本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!