gpt4 book ai didi

kotlin - Kotlin 中的保留关键字是什么?

转载 作者:IT老高 更新时间:2023-10-28 13:33:56 36 4
gpt4 key购买 nike

我浏览过 https://kotlinlang.org/docs/reference但我找不到在 Kotlin 中使用的保留关键字。 Kotlin 有多少个关键字?只要我们知道 Java 有自己的关键字列表,如下所示:enter image description here

最佳答案

UPD: 关键字引用已添加到 Kotlin 文档中:(here)


当前版本的 hard 关键字自动生成列表可在 Kotlin Github 存储库中找到:(here)

有更多的软关键字,它们在特定上下文中的行为类似于关键字,如 itfieldobject、访问和成员修饰符。

更多关于软关键字被视为关键字的上下文可以在 grammar reference 中找到。 ,以及整个语法,包括它们所在位置的硬关键字。

关于kotlin - Kotlin 中的保留关键字是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34803897/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com