[swift-evolution] Introduce "associated_type" keyword

Loïc Lecrenier loiclecrenier at icloud.com
Sat Dec 5 20:13:53 CST 2015


Right. I proposed associated_type simply because that's what SIL calls them, but it is a bad name for Swift. I like associated and withtype though. 

Loïc

> On Dec 6, 2015, at 3:08 AM, Anandabits <matthew at anandabits.com> wrote:
> 
> 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