Re: simple vs complex languages

Tony Finch <dot@dotat.at>
16 May 2003 20:00:08 -0400

          From comp.compilers

Related articles
[14 earlier articles]
Re: simple vs complex languages bear@sonic.net (2003-05-12)
Re: simple vs complex languages bear@sonic.net (2003-05-12)
Re: simple vs complex languages nmm1@cus.cam.ac.uk (2003-05-14)
Re: simple vs complex languages bobduff@shell01.TheWorld.com (Robert A Duff) (2003-05-15)
Re: simple vs complex languages lex@cc.gatech.edu (Lex Spoon) (2003-05-15)
Re: simple vs complex languages nmm1@cus.cam.ac.uk (2003-05-16)
Re: simple vs complex languages dot@dotat.at (Tony Finch) (2003-05-16)
Re: simple vs complex languages tenger@iSeries-guru.com (Terrence Enger) (2003-05-16)
Re: simple vs complex languages alexc@std.com (Alex Colvin) (2003-05-16)
Re: simple vs complex languages eas-lab@absamail.co.za (2003-05-18)
Re: simple vs complex languages jcrens@earthlink.net (Jack Crenshaw) (2003-05-24)
Re: simple vs complex languages jcrens@earthlink.net (Jack Crenshaw) (2003-05-24)
Re: simple vs complex languages jcrens@earthlink.net (Jack Crenshaw) (2003-05-24)
[18 later articles]
| List of all articles for this month |
From: Tony Finch <dot@dotat.at>
Newsgroups: comp.compilers
Date: 16 May 2003 20:00:08 -0400
Organization: dotat labs
References: 03-04-095 03-04-112 03-05-006
Keywords: design
Posted-Date: 16 May 2003 20:00:08 EDT

Basile STARYNKEVITCH <basile@starynkevitch.net> wrote:
>
>It is a pity that no [major] programming language accept HTML pages
>(or even .doc documents,...), or even provide its own fancy editor. In
>particular, integrating some ideas from the literate programming
>movement inside programming languages is not done. Comments are still
>simple sequence of characters (perhaps with a specific markup like in
>javadoc or ocamldoc). Our program sources are not hypertextual (even
>if a few research papers mention this).


One of the things I was introduced to when working for Inmos was the
idea of a folding editor which uses specially-formatted comments to
describe a hierarchial structure in the file, similar to the block
structure of a program. However the fold marks are independent of the
actual program, so they can be used to add conceptual structure to it,
e.g. blocks of related declarations at the top level of a C file.
(I've thought that adding a new kind of fold mark for hyperlinking to
another fold in the same or a different file might be a useful
addition, if it isn't too confusing.)


The disadvantage of folds is that they allow you to hide away the
contents of big sprawling functions, and (especially in the Inmos
incarnation) make it much easier to let your code march off the
right-hand-side of the screen. They do encourage more commenting than
usual, but since fold marks are only one line the comments tend to be
telegraphic.


Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/


Post a followup to this message

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