Re: Semicolons (Re: Low-Rent Syntax)

liam@cs.qmw.ac.uk (William Roberts)
3 Sep 90 17:42:01 GMT

          From comp.compilers

Related articles
[2 earlier articles]
Semicolons (Re: Low-Rent Syntax) thomasm@llama.ingres.com (1990-08-22)
Re: Semicolons (Re: Low-Rent Syntax) trt@rti.rti.org (1990-08-24)
Re: Semicolons (Re: Low-Rent Syntax) mjr@decuac.DEC.COM (1990-08-25)
Re: Semicolons (Re: Low-Rent Syntax) bart@videovax.tv.tek.com (Bart Massey) (1990-08-26)
Re: Semicolons (Re: Low-Rent Syntax) elsie!ado@uunet.UU.NET (1990-08-27)
Re: Semicolons (Re: Low-Rent Syntax) anw@maths.nott.ac.uk (1990-08-29)
Re: Semicolons (Re: Low-Rent Syntax) liam@cs.qmw.ac.uk (1990-09-03)
Re: Semicolons (Re: Low-Rent Syntax) firth@sei.cmu.edu (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) lins@apple.com (Chuck Lins) (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) rob@baloo.eng.ohio-state.edu (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) MERRIMAN@ccavax.camb.com (George Merriman -- CCA/NY) (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) dik@cwi.nl (1990-09-06)
Re: Semicolons (Re: Low-Rent Syntax) dolf@idca.tds.philips.nl (Dolf Grunbauer) (1990-09-15)
[1 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: liam@cs.qmw.ac.uk (William Roberts)
Keywords: parse, design
Organization: Computer Science Dept, QMW, University of London, UK.
References: <9008202341.AA06543@llama.ingres.com> <4032@rtifs1.UUCP> <1990Aug29.140407.28378@maths.nott.ac.uk>
Date: 3 Sep 90 17:42:01 GMT

In <1990Aug29.140407.28378@maths.nott.ac.uk> anw@maths.nott.ac.uk (Dr A. N. Walker) writes:


> while (x)
> skip; /* Down with empty null statements! */


The thing I hate most about Modula-2 is that it won't allow a semicolon on
the last statement of a loop-body, on the dubious grounds that you don't need
one. Languages which do that clearly aren't written to be edited: at least,
not without clever editors that won't let you forget the very necessary
semicolon between the old last-statement-of-the-loop and the new one you have
just inserted.


Language designers should try to remember that a) programs get modified, and
b) the syntax of the language is in part its "user interface" and should be
given some thought as to its usability, not just its denotational purity!
--
William Roberts ARPA: liam@cs.qmw.ac.uk
Queen Mary & Westfield College UUCP: liam@qmw-cs.UUCP
Mile End Road AppleLink: UK0087
LONDON, E1 4NS, UK Tel: 071-975 5250 (Fax: 081-980 6533)
[I have seen many reports that the semicolon as separator, as in Algol 60
and Pascal, is much harder to get right than the semicolon as terminator,
as in PL/I and C. -John]
--


Post a followup to this message

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