[swift-evolution] Introduce "associated_type" keyword

Anandabits matthew at anandabits.com
Sat Dec 5 20:08:18 CST 2015


I like the proposal in general, but the snake case feels decidedly un-Swifty (although I like snake case personally it isn't the Swift convention and I do like strong conventions).

Sent from my iPad

> On Dec 5, 2015, at 7:46 PM, Austin Zheng via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I like "associated". Or maybe "withtype". Anything clear and without underscore.
> 
> protocol Foo {
>   associated T
> }
> 
> protocol Foo {
>  withtype T
> }
> 
>>> On Dec 5, 2015, at 5:43 PM, Stephen Celis via swift-evolution <swift-evolution at swift.org> wrote:
>>> 
>>> On Dec 5, 2015, at 8:11 PM, Kevin Lundberg via swift-evolution <swift-evolution at swift.org> wrote:
>>> 
>>> If we must keep this concept, I would prefer something without an underscore for the keyword, like "associatedtype" or perhaps "typeassociation"
>> 
>> Or merely "associated".
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-evolution
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution


More information about the swift-evolution mailing list