[swift-evolution] [SE-0011] Re-considering the replacement keyword for "typealias"

Charles Constant charles at charlesism.com
Sun Dec 20 03:24:00 CST 2015


If I understand the Associated Types (I wouldn't be surprised if I have it
all wrong), don't they really define Types used as, in standard English,
"components", or "elements" of the protocol? If so, the problem is that the
words "component" and "element" are already used for other things.

On Sun, Dec 20, 2015 at 1:18 AM, Brent Royal-Gordon via swift-evolution <
swift-evolution at swift.org> wrote:

> > Is there a some reason I am missing why *type* or associated* are better
> keyword fits?
>
> The main reason to use `associated` is because the feature is called an
> "associated type". If we're willing to rename the feature to "placeholder
> type", then `placeholder` would be a good keyword.
>
> --
> Brent Royal-Gordon
> Architechies
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151220/b7a33fd6/attachment.html>


More information about the swift-evolution mailing list