[swift-evolution] RFC: didset and willset

Chris Lattner clattner at apple.com
Fri May 20 01:11:31 CDT 2016


> On May 18, 2016, at 1:55 PM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
> 
>> I may be wrong but I don't remember any other case of a keyword in
>> Swift composed of two or more words, so I believe these should be
>> exceptions.
> 
> `typealias` and `associatedtype` are the main examples; there were huge catfights on swift-evolution about whether the latter should be `associatedtype`, `associatedType`, or `associated_type`. There are also a number of attributes like `@noescape` and `@discardableResult`, which aren't 100% consistent.

Right, but the catfight had a clear outcome:

1) keywords are conjoined
2) attributes are lower camel cased.
3) attributes should use “non” not “no”.  noescape should be nonescaping (and thus no camel bump).

-Chris


More information about the swift-evolution mailing list