[swift-evolution] [Review] Replace `typealias` keyword with `associatedtype` for associated type declarations

Paul Cantrell cantrell at pobox.com
Wed Jan 6 15:03:45 CST 2016


> On Jan 6, 2016, at 2:56 PM, Loïc Lecrenier <loiclecrenier at icloud.com> wrote:
> 
>> Perhaps keyword capitalization conventions deserve some attention across the board.
> 
> I thought the rules were:
> - property/method: lowerCamelCase
> - language keyword: lowercase
> 
> I consider 
> - dynamicType as a property
> - didSet, willSet, deinit as methods.
> - typealias, fallthrough as language keywords

Those are all language keywords.

Complete list here: https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/LexicalStructure.html#//apple_ref/doc/uid/TP40014097-CH30-ID413

P


More information about the swift-evolution mailing list