Kotlin 指南變更記錄
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
2024 年 7 月 29 日
互通性
2023 年 9 月 6 日
- 新內容:允許含有多個複數檔案名稱的
camelCase
宣告的內容
2021 年 12 月 9 日
- 修正內容:闡明單行 if/else 無需使用括號的規則。
2021 年 5 月 19 日
- 修正內容:移除運算式函式使用時機的規則。
- 新內容:新增規則,禁止使用含有空格的函式名稱。
2020 年 6 月 10 日
2018 年 5 月 18 日
樣式
- 修正內容:函式參數換行縮排變更為單一縮排
JetBrains 風格指南。
- 修正內容:做為例外狀況,將範圍運算子新增至二進位檔運算子空白字元。
互通性
- 新內容:新增關於 Kotlin 和 Java 互通性的 Lint 檢查一節。
2017 年 11 月 14 日
互通性
修正內容:修正「Lambda 引數」的內容列出正確的
反映 lambda 類型的目前狀態以及介面 SAM 轉換。
2017 年 11 月 2 日
初始版本。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Kotlin guide change log\n\n29 July 2024\n------------\n\n### Interop\n\n- Fix: Corrected source syntax issues in the [\"Lambda parameters last\"](/kotlin/interop#lambda-parameters) and [\"Idiomatic naming\"](/kotlin/interop#idiomatic-naming) sections that prevented some code snippets from fully rendering.\n\n06 September 2023\n-----------------\n\n- New: Allow `camelCase` for plural filenames containing multiple declarations.\n\n9 December 2021\n---------------\n\n- Fix: Clarify rule on braces not being required for single-line if/else.\n\n19 May 2021\n-----------\n\n- Fix: Remove rule on when to use expression functions.\n- New: Added rule prohibiting function names with spaces.\n\n10 June 2020\n------------\n\n- Fix: Must wrap after operators in the general case (\u003chttps://github.com/android/kotlin-guides/issues/62\u003e).\n- New: Added rule for `@[...]` annotation syntax.\n\n18 May 2018\n-----------\n\n### Style\n\n- Fix: Function parameter wrap indent has changed to single indent to match the JetBrains style guide.\n- Fix: Add the range operator as an exception to binary operator whitespace.\n\n### Interop\n\n- New: Added a section about Lint Checks for Kotlin and Java Interoperability.\n\n14 November 2017\n----------------\n\n### Interop\n\nFix: Corrected the content of the \"Lambda arguments\" section to accurately\nreflect the current state of lambda types and interface SAM conversion.\n\n2 November 2017\n---------------\n\nInitial release."]]