Re: Syntax of Comments (was: language design tradeoffs)

Vincent Delacour <delacour@parc.xerox.com>
Thu, 24 Sep 1992 22:37:20 GMT

          From comp.compilers

Related articles
[5 earlier articles]
Re: Syntax of Comments (was: language design tradeoffs) jimc@tau-ceti.isc-br.com (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) crowl@jade.cs.orst.edu (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) crowl@jade.cs.orst.edu (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) beshers@hks.com (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) macrakis@osf.org (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) fjh@munta.cs.mu.OZ.AU (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) delacour@parc.xerox.com (Vincent Delacour) (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) macrakis@osf.org (1992-09-25)
Re: Syntax of Comments (was: language design tradeoffs) de19@umail.umd.edu (1992-10-04)
Re: Syntax of Comments (was: language design tradeoffs) Bruce.Hoult@bbs.actrix.gen.nz (1992-10-05)
Re: Syntax of Comments (was: language design tradeoffs) tmb@arolla.idiap.ch (1992-10-06)
Re: Syntax of Comments (was: language design tradeoffs) liblit@cs.psu.edu (1992-10-06)
Re: Syntax of Comments (was: language design tradeoffs) pcbeard@ucdavis.edu (1992-10-06)
[2 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: Vincent Delacour <delacour@parc.xerox.com>
Organization: Compilers Central
Date: Thu, 24 Sep 1992 22:37:20 GMT
Keywords: C, parse, syntax
References: 92-09-159 92-09-144



crowl@jade.cs.orst.edu (Lawrence Crowl) writes:


    Nested comments have the same problem as #ifdef, I can't tell by looking at
    a chunk of code that it is commented out. I have to search upwards in the
    text for a begin comment marker. Comments that only act on the current line
    are easy to find.


One can expect that the syntaxes of comments in programming languages will
become less and less relevant as a human factor.


Today already, many people use formatters, so comments can not be mistaken
for code in printed programs. Editing is another story, since structural
editors and browsers are not widely used for various reasons. Even the
so-called "literate programs" are still edited with conventional editors,
using awkward syntaxes, for lack of adequate tools... However, skipping
commented out portions of a Lisp program (Lisp has nested comments) or
ifdef-ed out portions of C code can be done today as a minor extension of
the tags program under emacs.


Hopefully, the machines will soon be the only ones to view programs as
merely streams of bytes.


V. Delacour
--


Post a followup to this message

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