[swift-evolution] Introduce "associated_type" keyword

Stephen Celis stephen.celis at gmail.com
Sun Dec 6 08:44:05 CST 2015


“type” feels more ambiguous to me with the existence of Foo.Type.

Stephen

> On Dec 6, 2015, at 8:51 AM, Thorsten Seitz <thorsten.seitz at web.de> wrote:
> 
> Why not just „type“?
> 
> protocol Foo {
>    type T
> }
> 
> -Thorsten
> 
> 
> 
>> Am 06.12.2015 um 02:46 schrieb Austin Zheng via swift-evolution <swift-evolution at swift.org>:
>> 
>> 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