Kotlin 指南更改日志
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
2021 年 12 月 9 日
- 修复:阐明了单行 if/else 语句不需要大括号的规则。
2021 年 5 月 19 日
- 修复:移除了有关何时使用表达式函数的规则。
- 新增:新增了禁止使用包含空格的函数名称的规则。
2020 年 6 月 10 日
- 修复:在一般情况下,必须在运算符后面换行(https://github.com/android/kotlin-guides/issues/62)
- 新增:添加了
@[...]
注释语法规则
2018 年 5 月 18 日
样式
- 修复:为了与 JetBrains 样式指南保持一致,将函数参数换行缩进改成了单缩进。
- 修复:添加了范围运算符作为二元运算符空白的例外情况。
互操作
- 新增:添加了一个关于 Kotlin/Java 互操作性的 Lint 检查的部分。
2017 年 11 月 14 日
互操作
修复:更正了“Lambda 参数”部分的内容,以准确反映 lambda 类型和接口 SAM 转换的当前状态。
2017 年 11 月 2 日
初始版本。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-03-13。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]