[Pharo-project] Smells looking at collections
leves at elte.hu
Sun Oct 24 14:06:55 EDT 2010
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
> 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.
> just my 2 cents,
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
More information about the Pharo-dev