[swift-evolution] Introduce "associated_type" keyword
Loïc Lecrenier
loiclecrenier at icloud.com
Sat Dec 5 20:27:24 CST 2015
Great :)
Also, this hasn't been explicitly discussed yet. But do you all agree about adding "real" typealias declarations (with the typealias keyword) inside protocols?
Loïc
> On Dec 6, 2015, at 3:20 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>
> On Sat, 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".
>
> +1 to the proposal, emphasizing the distinction is important; and I
> like "associated" as the keyword for this purpose, too.
>
> Dmitri
>
> --
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the swift-evolution
mailing list