z*******n 发帖数: 1034 | 1 出现了个func,既不是个word也不是众所周知的abbreviation
Keywords and Punctuation
The following keywords are reserved and can’t be used as identifiers,
unless they’re escaped with backticks, as described above in Identifiers.
Keywords other than inout, var, and let can be used as external parameter
names in a function declaration or function call without being escaped with
backticks.
Keywords used in declarations: associatedtype, class, deinit, enum,
extension, func, import, init, inout, internal, let, operator, private,
protocol, public, static, struct, subscript, typealias, and var.
Keywords used in statements: break, case, continue, default, defer, do, else
, fallthrough, for, guard, if, in, repeat, return, switch, where, and while.
Keywords used in expressions and types: as, catch, dynamicType, false, is,
nil, rethrows, super, self, Self, throw, throws, true, try, #column, #file,
#function, and #line.
Keywords used in patterns: _.
Keywords that begin with a number sign (#):
#available, #column, #else#elseif, #endif, #file, #function, #if, #line, and
#selector.
Keywords reserved in particular contexts: associativity, convenience,
dynamic, didSet, final, get, infix, indirect, lazy, left, mutating, none,
nonmutating, optional, override, postfix, precedence, prefix, Protocol,
required, right, set, Type, unowned, weak, and willSet. Outside the context
in which they appear in the grammar, they can be used as identifiers.
The following tokens are reserved as punctuation and can’t be used as
custom operators: (, ), {, }, [, ], ., ,, :, ;, =, @, #, & (as a prefix
operator), ->, `, ?, and ! (as a postfix operator). |
|