Giter Site home page Giter Site logo

kotlindemo's Introduction

Kotlin

基础语法

进阶内容

  • 范围函数(let/run/with...)
  • 操作符重载
  • Lamda表达式
  • 高阶函数
  • 内联inline

缺点与不足

  1. 顶级函数缺乏命名空间,这让我们在读相关代码时很难快速定位用的是哪一个函数。
  2. 空安全并非绝对安全,在与Java互操作过程中可能仍会发生异常。
  3. 与java的互调用语法不友好,容易出错。
  4. 非受检异常,这意味着编译器不会强迫你捕获其中的任何一个,但这样做也许会导致运行时抛出异常。

延伸拓展

教程

  1. Kotlin 实战
  2. 我的 Kotlin 笔记

参考

  1. https://www.jianshu.com/p/7ca933dfba8d
  2. https://www.jianshu.com/p/1667609e7e5b

kotlindemo's People

Contributors

hgncxzy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.