| Related articles |
|---|
| [10 earlier articles] |
| Re: Is the dangling else a syntax bug? david.thompson1@worldnet.att.net (David Thompson) (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? 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) |
| [3 later articles] |
| From: | marcov@toad.stack.nl (Marco van de Voort) |
| Newsgroups: | comp.compilers |
| Date: | 23 Jul 2001 23:21:58 -0400 |
| Organization: | Eindhoven University of Technology, The Netherlands |
| References: | 01-06-073 01-07-110 |
| Keywords: | syntax, design |
| Posted-Date: | 23 Jul 2001 23:21:58 EDT |
Jack Crenshaw wrote:
> Of course it is. In both C and Pascal.
>
> As you point out, the whole problem goes away if the if is terminated
> by and endif, as in Fortran.
Or modula2. Always a block, never a "single statement"
> Personally, I much prefer endfor, enddo, endcase, etc., as well. The
> keyword 'end' is overloaded ... um ... no end.
So do I. And end "function name/module name" to terminate
procs/functions and modules.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.