21
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Swift予約語リスト

Last updated at Posted at 2014-06-03

backtick(`)で挟めば使用できるとのこと。
つまり

class

はダメだけど

`class`

は使える。

  • 宣言: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, right, set, unowned, unowned(safe), unowned(unsafe), weak, willSet

参考資料

21
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?