[swift-evolution] Mixins

Matthew Johnson matthew at anandabits.com
Wed Dec 23 14:08:50 CST 2015


I obviously don't know what the original poster intended but the most common definitions I have seen are:

Trait: Protocols with default implementations for some method requirements.
Mixin: Traits with stored properties.

Sent from my iPhone

> On Dec 23, 2015, at 1:57 PM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> On Dec 23, 2015, at 11:54 AM, James Campbell via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> Mixins would be a great addition instead of having to define a protocol and then extending it
> 
> Mixins are a vague term. What exactly do you propose?
> 
> -Joe
> _______________________________________________
> 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