Re: [dev] Conversation with Anselm R. Garbe of suckless.org

From: Pinocchio <cchinopio_AT_gmail.com>
Date: Sat, 19 Sep 2009 23:17:52 -0700

On Sat, 19 Sep 2009 19:18:50 -0700, Jessta <jessta_AT_gmail.com> wrote:

> On 19/09/2009, Pinocchio <cchinopio_AT_gmail.com> wrote:
>> Take a look at "traits", a somewhat new programming language construct
>> recently introduced in Scala.
>> http://scg.unibe.ch/research/traits
>> Its pretty orthogonal to OO and seems to be a good alternative to
>> inheritance for code reuse. Of course, only time and experience with the
>> construct would tell how much of an improvement it really is.
>
> What is the difference between traits and an abstract class?
> They look exactly the same to me.
>

Traits contain no data. It basically composes functions in the traits together while also letting the programmer take care of conflicts.

-- 
Pinocchio
Received on Sun Sep 20 2009 - 06:17:52 UTC

This archive was generated by hypermail 2.2.0 : Sun Sep 20 2009 - 06:36:01 UTC