Magritte Validation Error
Lukas Renggli
renggli at iam.unibe.ch
Tue Nov 29 22:20:18 MET 2005
>> How about #descriptions which is a common naming for
>> collections of anything ?
I don't like this, because you don't get a collection of single
descriptions, but a container of descriptions that is a description
(singular) itself (and accidently responds to the collection protocol).
> with it, but I really do feel it should be a conversion method. When
> you want a component, you say anObject asComponent, when you want a
> description, why not anObject asDescription? The description isn't a
> property of the object, it's a different representation of it, a meta
> representation.
It is definitely not a conversion method, the resulting description
is completely independent from the receiver of the message: it can be
recomposed, reused with or without any other model instance. What is
more, have you ever seen an #asClass conversion method to ask your
instance for its meta-representation (#class)?
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the SmallWiki
mailing list