Feb. 16, 2012
9:09 p.m.
On Feb 16, 2012, at 4:35 PM, Nicolas Passerini wrote:
I think it would be very nice to be able to apply a trait directly to an object, without having to create a new class. This is possible for example in scala:
val myObject = new MyClass with MyTrait
I have programmed a simple implementation in Pharo which allows you to do:
myObject := (MyClass with: MyTrait) new.
The implementation is only a proof of concept and has some issues that should be addressed before being able to use it in a real program, but I can make it available if someone is interested.
What do you think about this?
I do not think that I want that. Because: what about tools support? I do not see the use case. Now you can do prototypes for fun. Stef