On 28/11/14 13:36, Chris Marshall wrote:
> On Nov 28, 2014 4:12 AM, "Tom Hacohen" <tom.haco...@samsung.com> wrote:
>>
>> On 28/11/14 10:05, Tom Hacohen wrote:
>>> On 25/11/14 21:58, Chris Marshall wrote:
>>>> I would like to support perl5 roles which are also known as traits:
>>>>
>>>>      http://scg.unibe.ch/archive/papers/Scha03aTraits.pdf
>>>>
>>>> >From the positive experience with roles in perl5 modern OO
>>>> developments, there is reason to believe that their support in
>>>> EO might be equally useful and maybe an improvement over
>>>> the mixin functionality.
>>>>
>>>
>>> Thanks, will read into that.
>>>
>>> Will reply to the rest of your emails in a second.
>>
>> I don't see how they are different from mixins with 0 associated data.
>> They just seem like a more restricted version of mixins.
>
> The main difference is that they get composed into the class as they are
> applied so there is no further MRO or inheritance.  This gives the good
> parts of multiple inheritance without the pathologies.

OK, so they are a way to add methods to a class directly? Interesting.
Though I don't see the benefits over mixins. They integrate well into 
the MRO and let you do a bit more (have data) that we actually use 
(though could refactor to avoid).

--
Tom.



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to