Swift 關鍵字彙總

常見的關鍵字有以下4種

與聲明有關的關鍵字:class、deinit、enum、extension、func、import、init、let、protocol、static、struct、subscript、typealias和var。

與語句有關的關鍵字:break、case、continue、default、do、else、fallthrough、if、in、for、return、switch、where和while。

表達式和類型關鍵字:as、dynamicType、is、new、super、self、Self、Type、__COLUMN__、__FILE__、__FUNCTION__和__LINE__。

在特定上下文中使用的關鍵字:associativity、didSet、get、infix、inout、left、mutating、none、nonmutating、operator、override、postfix、precedence、prefix、rightset、unowned、unowned(safe)、unowned(unsafe)、weak和willSet。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章