On Sun, 24 Oct 2010, Johan Brichau wrote:


On 24 Oct 2010, at 08:42, Stéphane Ducasse wrote:

Well, Traits are in Squeak since 2006, IIRC they were available a few years 
earlier. So in the last X (at least 4) years the only good candidate to become 
a Trait was Magnitude.


PolyMorphic also uses traits.

Where can I find it?

There are non-core projects that also use them, for example WebTester.

I don't see any trait in the latest version, though I used SqueakSource's web interface.


I can also name several occassions in the development of our application, where 
we considered using traits to avoid code duplication. The only reason we didn't 
was because of a need for portability to GS. But if I understood correctly, 
it's quite possible that GS will support them in the future.

Traits are being added to many other languages as well (e.g. traitsjs.org). It 
would be a shame to remove them from Squeak/Pharo Smalltalk now.

I'm not saying that trait-like composition is bad, I only say that there's a better approach.


Levente


just my 2 cents,
Johan
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to