Kotlin 1.4 language features
0 码力 | 69 页 | 3.29 MB | 2 年前文档介绍了Kotlin 1.4版本的主要新特性,包括SAM转换、显式API模式、尾随逗号、在when表达式中使用break和continue、混合命名和位置参数、新的类型推断以及统一的空值检查异常。这些改进提升了语言的质量和性能,并为开发者提供了更强大的工具支持。
Kotlin 1.2 Language Documentation
0 码力 | 333 页 | 2.22 MB | 2 年前Kotlin 1.2版本引入了多项新功能和改进,包括新增的数学运算API,支持常量、三角函数、双曲函数、指数、对数、舍入、符号和绝对值、比较、二进制表示等功能。此外,还增强了对BigInteger和BigDecimal的操作,新增了序列和集合操作(如windowed、chunked、zipWithNext、fill、replaceAll、shuffle等)。文档还介绍了使用lateinit修饰符支持顶级属性和局部变量,改进了内联函数的默认参数功能,并对反射API进行了调整以支持Java 9。同时,Kotlin在Android开发方面表现优异,提供了高效的开发工具和丰富的库支持。
Kotlin language specification
Version 1.9-rfc+0.1
0 码力 | 310 页 | 1.39 MB | 2 年前The document is the Kotlin Language Specification version 1.9-rfc+0.1, which provides detailed information about the Kotlin programming language. It highlights Kotlin's multiplatform capabilities, including compilation to JVM, JS, and Native platforms. The specification covers fundamental aspects of Kotlin, such as its type system, syntax, and grammar. Key features include null safety, gradual and flow typing, and support for both object-oriented and functional programming paradigms. The document also addresses compatibility considerations, experimental features, and platform-specific implementations.
Kotlin language specification
Version 1.9-rfc+0.1
0 码力 | 38 页 | 358.59 KB | 2 年前The document provides a detailed specification of the Kotlin language, including syntax grammar, lexical grammar, documentation comments, and identifier rules. It covers aspects such as annotations, multiline string handling, identifier escaping, and platform-specific restrictions. The specification also includes rules for keywords, operators, and string modes.
Coroutines in Kotlin
0 码力 | 39 页 | 1.01 MB | 2 年前The document discusses the implementation and design of coroutines in Kotlin. It covers the motivation behind coroutines, compares solutions in other languages, and explains Kotlin's approach. The document highlights how coroutines are compiled into state machines, ensuring efficient runtime performance with minimal allocation. It also addresses exception handling and the concept of serializable coroutines. The content emphasizes the flexibility and efficiency of Kotlin's coroutines, providing insights into their underlying mechanisms and practical applications.
A Security Guide for Kotlin Developers
0 码力 | 13 页 | 1.80 MB | 2 年前The document provides an in-depth analysis of the security profile of the Kotlin programming language, highlighting its strengths, common security risks, and best practices for secure development. It covers topics such as improper resource control, non-adherence to coding standards, and inherent language weaknesses. The guide also discusses the OWASP Mobile TOP 10 risks and how they apply to Kotlin applications. Additionally, it introduces Kiuwan, a tool that helps identify and remediate security vulnerabilities in Kotlin apps.
Kotlin Language Documentation 1.3
0 码力 | 597 页 | 3.61 MB | 2 年前Kotlin 1.3正式发布协程,语言支持与API完全稳定,并引入可挂起函数的可调用引用及反射API支持。多平台项目模型被重构,公共与平台代码置于同一模块的不同源根,支持预设平台配置与任意平台子集共享源集,并支持库发布。编译器新增Contracts功能,增强静态分析与智能转换。引入内联类(实验性),必须包含单一属性。新增渐进模式,可立即应用关键编译器修复,同时保持向后兼容。标准库新增kotlin.random.Random、isNullOrEmpty/orEmpty扩展、数组复制函数等。脚本API继续演进,支持自定义外部属性与依赖。kotlinx.serialization随编译器分发,但仍为实验性。工具方面,IDE支持推荐代码风格与可运行的Kotlin scratch文件。兼容性方面,标准库改为kotlin-stdlib-jdk7/jdk8以适配Java 9模块系统,并移除kotlin.reflect包中已弃用的声明。
Kotlin Language Documentation 1.9.20
0 码力 | 1299 页 | 32.44 MB | 2 年前文档是Kotlin 1.9.20语言文档,涵盖新特性、安装指南、兼容性说明等内容。主要更新包括:K2编译器支持JVM、Wasm和kapt插件预览;Kotlin/Native默认启用自定义内存分配器并优化垃圾回收性能;Gradle配置缓存全面支持Kotlin Multiplatform;新增默认层级模板用于设置多平台项目。文档还提供了IDE支持信息(IntelliJ IDEA 2023.1.x/2023.2.x)、Maven和JPS中启用K2编译器的方法,以及兼容性指南说明语言变更类型(源代码、二进制、行为)。FAQ部分确认Kotlin是免费的开源静态类型编程语言,当前版本为1.9.20(2023年11月1日发布),支持面向对象和函数式编程,相比Java更简洁且类型安全。
共 8 条
- 1













