From: | Jean-Marc Bourguet <jm@bourguet.org> |
Newsgroups: | comp.compilers |
Date: | Wed, 05 Jan 2011 14:57:36 +0100 |
Organization: | Guest of ProXad - France |
References: | 10-12-040 11-01-018 |
Keywords: | design, types |
Posted-Date: | 06 Jan 2011 15:49:52 EST |
torbenm@diku.dk (Torben Cgidius Mogensen) writes:
> You can also reverse the question: Given that you have records and
> (tagged) unions (== sum types), will classes provide significant value?
Classes provides modular addition of types, but unmodular addition of
operation.
Unions provides modular addition of operation, and unmodular addition of
types.
I choose one or the other depending on which evolution is more needed.
The problem is when both kinds is probable. Some names that the
expression problem (and last time I looked, it has no good solution)
Yours,
--
Jean-Marc
Return to the
comp.compilers page.
Search the
comp.compilers archives again.