<div dir="ltr">I'm sure we're just bikeshedding at this point, but...<div><br></div><div>I find "typealias" and "fallthrough" much easier to read, and easier to write, than "associatedtype". Upon further in(tro)spection, I think I'm reading typealias and fallthrough as <a href="https://en.wikipedia.org/wiki/English_compound" target="_blank">compound words</a>, rather than multiple words with no separation, so there is no question that they should be all-lowercase.<div><br></div><div>I find associatedtype harder to interpret as a compound word, so I'd expect some separation, either associated_type or associatedType. (I put some other suggestions that I like better in my previous email, though.)</div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div>Jacob<br></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jan 6, 2016 at 12:56 PM, Loïc Lecrenier <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>><br>
> What about the all lower case “associatedtype”? The underscore alternative of “associated_type” breaks existing language precedent. The camel case version (“associatedType”) does have language precedent, and I wonder if it wouldn’t be a better choice:<br>
><br>
> dynamicType<br>
> didSet<br>
> willSet<br>
><br>
> However, there’s also precedent for making paired words all lowercase in keywords:<br>
><br>
> typealias<br>
> fallthrough<br>
> deinit ←(debatable: could be considered single word or hyphenated)<br>
><br>
> Perhaps keyword capitalization conventions deserve some attention across the board.<br>
<br>
</span>I thought the rules were:<br>
- property/method: lowerCamelCase<br>
- language keyword: lowercase<br>
<br>
I consider<br>
- dynamicType as a property<br>
- didSet, willSet, deinit as methods.<br>
- typealias, fallthrough as language keywords<br>
<br>
And “associatedtype” would be a language keyword too, so it is lowercase 😊<br>
<br>
Loïc<br>
<div><div>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div></div></div>