Related articles |
---|
language design tradeoffs kotula@milli.cs.umn.edu (1992-09-07) |
Re: language design tradeoffs torbenm@diku.dk (1992-09-08) |
Re: language design tradeoffs nr@dynastar.Princeton.EDU (1992-09-09) |
Re: language design tradeoffs raveling@Unify.com (1992-09-11) |
Re: language design tradeoffs weberwu@inf.fu-berlin.de (1992-09-13) |
Re: language design tradeoffs rob@guinness.eng.ohio-state.edu (1992-09-14) |
Re: language design tradeoffs tmb@arolla.idiap.ch (1992-09-14) |
Re: language design tradeoffs macrakis@osf.org (1992-09-15) |
Re: language design tradeoffs jlg@cochiti.lanl.gov (1992-09-15) |
Re: language design tradeoffs anw@maths.nott.ac.uk (1992-09-16) |
Re: language design tradeoffs drw@euclid.mit.edu (1992-09-16) |
Re: language design tradeoffs rob@guinness.eng.ohio-state.edu (1992-09-17) |
[29 later articles] |
Newsgroups: | comp.compilers,comp.human-factors |
From: | rob@guinness.eng.ohio-state.edu (Rob Carriere) |
Organization: | The Ohio State University Dept of Electrical Engineering |
Date: | Mon, 14 Sep 1992 04:43:27 GMT |
References: | 92-09-048 92-09-068 |
Keywords: | design, parse, comment |
weberwu@inf.fu-berlin.de (Debora
Weber-Wulff) writes:
>raveling@Unify.com (Paul Raveling) writes:
>[sick macro trap in C deleted]
>Sigh. The problem is not the ';', it's the syntax of the if statement. If
>';' were nothing more than a statement separator and the empty statement
>were allowed, we could write ';;;;;;;;;;;;;;;;' if we felt like it. Then
>'if' must be terminated with a nice 'fi'and the problem goes away. Another
>reason why explicit terminators like od and fi are a good idea!
True. It is, however, possible to achieve the same effect in languages
that don't require if/do terminators by religously making the statement
inside the if/do a block; i.e. always use {} or BEGIN/END or whatever it's
called in the language of the week.
In fact, I would argue that a language that requires coding that way has
superior syntax to a do/od language, because of the well-known problem
with the spelling of the terminators. Things like TNEMMOC, CNUF and NIGEB
start looking OD rather quickly.
SR
---
[Algol68 came close to TNEMMOC, but also did an amazing job of letting you
use parentheses, vertical bars, and the like, as synonyms for if, else, fi,
begin, end, and other common delimiters. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.