Forums

Search found 35 matches: mixin

Return to advanced search

Re: Mixins

Well I never said mixins were easier than multiple inheritance. Cobra is riding on top of .NET and eventually JVM, neither of which support mult inh. So mixins are probably harder because you have to learn more about them. But having ...
by Charles
Wed Mar 04, 2009 10:39 am
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8497

Re: Mixins

I'm striving to grasp the mixin concept. You say that mixins are a limited form of multiple inheritance (MI). To what extent are they limited, i.e., what kind of things can one do with (MI) that cannot be done with mixins? I understand ...
by jonathandavid
Wed Mar 04, 2009 9:23 am
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8497

Re: Mixins

... properties and methods. I haven't added support for constructors which would explain why I haven't shown such an example. :-) Yes, you can use the mixin as a type. In .NET/JVM terms, it's an interface. Cobra shoves the method implementations into a side class with a different name. I'm currently ...
by Charles
Wed Mar 04, 2009 3:17 am
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8497

Re: Mixins

Thanks for adding this feature, Chuck. I'm not familiar with mixin-based programming myself, but I'm sure it has a lot of benefits. This is a great excuse to learn more about it. Since the article you linked to uses a single example (timestamped classes), ...
by jonathandavid
Mon Mar 02, 2009 3:19 am
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8497

Mixins

I have added initial support for mixins to the language. "mixin" is one of those terms like "object" and "class" that varies a bit from language to language. But essentially, mixins are a limited form of multiple ...
by Charles
Sun Mar 01, 2009 1:41 am
 
Forum: Discussion
Topic: Mixins
Replies: 12
Views: 8497
Previous

Return to advanced search

cron