初涉Kotlin

Hello Kotlin!

大家都说:kotlin是Android世界的Swift

Kotlin 1.0 

欧耶,很好很好,要好好的研究学习下了。

目前其最新的版本是 Kotlin 1.0 。于2016年2月15日发表。

一:Kotlin 是什么?

      对呀,kotlin到底是什么呢?根据官方描述:

Kotlin is a pragmatic programming language for JVM and Android that combines OO and functional features and is focused on interoperability safety clarity and tooling support.

其可以运行于以下的工具(引用官方原句):

1.IntelliJ IDEA, Android Studio and Eclipse

2.Maven, Gradle and Ant

3.Spring Boot(Kotlin support released today!)

4.GitHub, Slack and even Minecraft

Kotlin的亮点在于:

One of the key focuses of Kotlin has been interoperability and seamless support formixed Java+Kotlin projects, making adoption easier leading to less boilerplate code and more type-safety. Additionally, Kotlin has anextensive standard librarythat makes everyday tasks easy and smooth while keeping the bytecode footprintlow. Of course,any Java library can be used in Kotlin, too; and vice versa.

好吧,Kotlin的介绍多得不要不要的。#—  。—#

二:特性

a.代码简洁(大大减少了你编程成本,减少代码量):

直接上图:

   简洁性

b.安全性(避免空指针等)


 安全性

c.Versatile(—。—多平台?????)


  多能


d.互操作性


  互操作性

e.工具支持


 工具支持

三:看下代码模样

直接上图好了,都是官网上的   O(∩_∩)O哈哈~






不喜勿喷!谢谢 O(∩_∩)O谢谢!!!!!!!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 178,466评论 25 709
  • 内存回收就是释放掉在内存中已经没用的对象。 判断怎样的对象是没用的对象(2种方法 标记计数/根搜索) 1.采用标记...
    Temple_Li阅读 211评论 0 0
  • 我平生最欣赏的就是自嘲精神,听名字一下子就喜欢了它,买了好几个。卖水果的大妈脸上堆满了笑啊! 拿到手和小伙伴分了分...
    黑土钱阅读 428评论 15 8

友情链接更多精彩内容