On Mon, Feb 23, 2015 at 9:59 AM, Marcus Denker <marcus.denker@inria.fr> wrote:
On 21 Feb 2015, at 21:11, Jan van de Sandt <jvdsandt@gmail.com> wrote:
Today I experimented a little with the new Slots feature of Pharo 4.0. As an example I implemented support for associations/relationships.
Very nice! Can I add this to Pharo4 as an example?
Sure, cool!
My idea is that at first we add these things as examples, and then later take the examples and distill a library of generally useful slots.
That sounds like a good approach to get familiar with these kind of new features. Some things I can do to improve the Example - Add an option to make one side of the association readonly. In most situations I think it's a good idea to update an association only from one side to keep things simple. - Whats a better name AssociationSlot or RelationSlot? I'm not sure - As Stéphane said, isn't there a nicer way to declare the associations? - Better error handling Jan.