Re: language design implications for variant records in a pascal-like language

Jean-Marc Bourguet <jm@bourguet.org>
Wed, 05 Jan 2011 14:57:36 +0100

          From comp.compilers

Related articles
[19 earlier articles]
Re: language design implications for variant records in a pascal-like bobduff@shell01.TheWorld.com (Robert A Duff) (2010-12-31)
Re: language design implications for variant records in a pascal-like fw@deneb.enyo.de (Florian Weimer) (2010-12-31)
Re: language design implications for variant records in a pascal-like noitalmost@cox.net (noitalmost) (2010-12-31)
Re: language design implications for variant records in a pascal-like gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-01-02)
Re: language design implications for variant records in a pascal-like gene.ressler@gmail.com (Gene) (2011-01-02)
Re: language design implications for variant records in a pascal-like torbenm@diku.dk (2011-01-04)
Re: language design implications for variant records in a pascal-like jm@bourguet.org (Jean-Marc Bourguet) (2011-01-05)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like gneuner2@comcast.net (George Neuner) (2011-01-06)
Re: language design implications for variant records in a pascal-like bobduff@shell01.TheWorld.com (Robert A Duff) (2011-01-06)
Re: language design implications for variant records in a pascal-like DrDiettrich1@aol.com (Hans-Peter Diettrich) (2011-01-08)
[30 later articles]
| List of all articles for this month |
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



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.