Re: Language design question

Keith Thompson <kst@cts.com>
19 Feb 2000 00:26:17 -0500

          From comp.compilers

Related articles
Language design question flisakow@ricotta.cs.wisc.edu (2000-02-13)
Re: Language design question world!cfc@uunet.uu.net (Chris F Clark) (2000-02-13)
Re: Language design question jejones@microware.com (James Jones) (2000-02-15)
Re: Language design question flisakow@ricotta.cs.wisc.edu (2000-02-15)
Re: Language design question mkg@lanl.gov (2000-02-16)
Re: Language design question joachim.durchholz@halstenbach.com.or.de (Joachim Durchholz) (2000-02-16)
Re: Language design question joachim.durchholz@halstenbach.com.or.de (Joachim Durchholz) (2000-02-17)
Re: Language design question kst@cts.com (Keith Thompson) (2000-02-19)
Re: Language design question thp@roam-thp2.cs.ucr.edu (Tom Payne) (2000-02-19)
Re: Language design question Andrew.Walker@nottingham.ac.uk (Dr A. N. Walker) (2000-02-27)
Re: Language design question hannah@mamba.pond.sub.org (2000-03-21)
Re: Language design question frederic_guerin@yahoo.com (Frederic) (2000-03-25)
Re: Language design question world!bobduff@uunet.uu.net (Robert A Duff) (2000-03-25)
| List of all articles for this month |
From: Keith Thompson <kst@cts.com>
Newsgroups: comp.compilers
Date: 19 Feb 2000 00:26:17 -0500
Organization: CTS Network Services
References: 00-02-065 00-02-077 00-02-082
Keywords: design

mkg@lanl.gov (Mark K. Gardner) writes:
[...]
> This is a personal preference of mine but... I would suggest you get
> rid of the separation between interface and implementation. This is
> one of the things that I did not like about Modula-2 as well as the
> units extension to Pascal. I found it very annoying to have to "switch
> contexts" to the interface definition just to specify some external
> property.


As you said, it's a personal preference. My own strong preference is
that interface and implementation *should* be physically separated.
The interface is all the client should have to worry about.


Yes, there are tools that can extract an interface specification from
a source file that contains both interface and implementation, and
keeping the interface and the implementation synchronized can be a bit
tedious -- but IMHO it's worth the trouble.


--
Keith Thompson (The_Other_Keith) kst@cts.com <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://www.sdsc.edu/~kst>


Post a followup to this message

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