Re: Clean Object Class Design -- Circle/Ellipse
Date: Mon, 01 Oct 2001 11:41:34 +0100
Message-ID: <3BB8485E.41A7EE55_at_dmu.ac.uk>
Bob Badour wrote:
> I find it very telling that almost every OO pundit has found it necessary to
> write an apologia explaining why the very real and natural subtype/supertype
> relationship between circle and ellipse does not apply in OO.
Where things go wrong is when people try to add the notion of procedural state. This seems incredibly easy and natural in programming terms, since we're all used to arrays, records, objects etc. and their associated operations. But it is NOT normal mathematics. The maths you need to handle values that are mutable states is VERY tricky and does not follow directly from the simple notions of types/sub-types or sets/sub-sets.
I find it very telling that almost every OO critic has found it necessary to attack OO on the basis that its modelling of procedural, mutable state does not work exactly like the simple mathematics of functional values.
Received on Mon Oct 01 2001 - 12:41:34 CEST