[Chandler-dev] The type of ContentItem.body [bug 3531]
stearns at osafoundation.org
Mon Apr 10 16:41:45 PDT 2006
> This is an attempt to resolve
> Currently the type of ContentItem.body is schema.String
> I propose that we adopt Morgen's proposal (in the bug) that we change
> the type to schema.Text, and that any parcel that needs to augment the
> body of a content item do it via a plugin specific mixin or
> annotation. Do people have thoughts on whether it is better to use a
> mixin or an annotation? Is there some other mechanism where we could
> avoid creating parcel/mixin specific body attributes.
+1 on making ContentItem.body schema.Text.
Re mixin vs annotation: Mixing in has the disadvantage that name
collisions between mixed-together kinds -- on attributes as in this
case, or on method names -- are inevitable. I'm not sure that
annotations are an alternative: while annotations resolve the issue of
attribute name collisions, they prevent any meaningful transparent
overloading. (Insert the rest of my "stamping via kind munging is bad"
More information about the chandler-dev