Related articles |
---|
[11 earlier articles] |
Re: Is the dangling else a syntax bug? genew@shuswap.net (2001-07-17) |
Re: Is the dangling else a syntax bug? genew@shuswap.net (2001-07-17) |
Re: Is the dangling else a syntax bug? toon@moene.indiv.nluug.nl (Toon Moene) (2001-07-18) |
Re: Is the dangling else a syntax bug? esmond.pitt@bigpond.com (Esmond Pitt) (2001-07-18) |
Re: Is the dangling else a syntax bug? jcrens@earthlink.net (Jack Crenshaw) (2001-07-23) |
Re: Is the dangling else a syntax bug? marcov@toad.stack.nl (2001-07-23) |
Re: Is the dangling else a syntax bug? joachim_d@gmx.de (Joachim Durchholz) (2001-07-23) |
Re: Is the dangling else a syntax bug? vbdis@aol.com (2001-07-27) |
Re: Is the dangling else a syntax bug? wb@vestein.arb-phys.uni-dortmund.de (2001-07-30) |
Re: Is the dangling else a syntax bug? mike@dimmick.demon.co.uk (Mike Dimmick) (2001-07-30) |
Re: Is the dangling else a syntax bug? wclodius@aol.com (2001-07-30) |
Re: Is the dangling else a syntax bug? joachim_d@gmx.de (Joachim Durchholz) (2001-07-30) |
Re: Is the dangling else a syntax bug? marcov@toad.stack.nl (2001-08-02) |
[2 later articles] |
From: | "Joachim Durchholz" <joachim_d@gmx.de> |
Newsgroups: | comp.compilers |
Date: | 23 Jul 2001 23:22:47 -0400 |
Organization: | Compilers Central |
References: | 01-06-073 01-07-110 |
Keywords: | syntax, design |
Posted-Date: | 23 Jul 2001 23:22:47 EDT |
Jack Crenshaw <jcrens@earthlink.net> wrote:
>
> As you point out, the whole problem goes away if the if is terminated
> by and endif, as in Fortran.
>
> Personally, I much prefer endfor, enddo, endcase, etc., as well. The
> keyword 'end' is overloaded ... um ... no end.
An interesting variation of this is the use of unindentation as "end"
marker. This has been done e.g. in Python and Haskell.
Regards,
Joachim
Return to the
comp.compilers page.
Search the
comp.compilers archives again.