"Inheritance considered harmful"

W. Eliot Kimber eliot at isogen.com
Thu Apr 2 22:22:27 BST 1998


At 03:08 PM 4/2/98 -0500, Paul Prescod wrote:
>On Thu, 2 Apr 1998, W. Eliot Kimber wrote:
>>
>> That's probably because the architecture facility of ISO/IEC 10744 doesn't
>> *do* inheritance in the way that most people seem to expect.
>
>That's right. That's why people get so confused about them. The word 
>inheritance is inherently misleading when applied to architectural forms.
>
>Architectural forms do subtyping, not inheritance. Inheritance is about
>"getting stuff for free"  (e.g. code, declarations, fields). Subtyping is
>about *fulfilling a particular role* (perhaps through a manual
>construction of an appropriate "interface" (in this case a content
>model)). Architectural forms allow you to specify an interface that must
>be fulfilled and declare conformance to that interface. It does not allow
>you to "get code for free" (i.e. markup declarations). 

Paul has made clear what I was feebly trying to say: thanks Paul.

Cheers,

E.
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
Highland Consulting, a division of ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list