Browse thread
RE: [Caml-list] Some Clarifications
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] Some Clarifications |
On Wed, Jul 27, 2005 at 04:55:32AM -0700, Robert Roessler wrote: > An object certainly seems a natural and concise way to represent a > "state-holder-with-structured-access" - and I have done just that in a > small OCaml project... but that could be the Smalltalk and C++ in my > background talking. :) Modules actually work better for this. The exception is for GUIs, where inheritance allows you to do a few minor but useful things - in particular having containers and layouts which can contain widgets of any widget type. It's interesting that the one example of OO design in the GoF book (or in my ancient edition of it at least) is GUI widgets. I'm keen to know if there are any other areas where inheritance is actually useful over straightforward polymorphism and higher-order functions.. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com