Re: Is the dangling else a syntax bug?

marcov@toad.stack.nl (Marco van de Voort)
2 Aug 2001 02:30:32 -0400

          From comp.compilers

Related articles
[17 earlier articles]
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)
Re: Is the dangling else a syntax bug? vbdis@aol.com (2001-08-02)
Re: Is the dangling else a syntax bug? stephen_bevan@yahoo.com (2001-08-06)
| List of all articles for this month |
From: marcov@toad.stack.nl (Marco van de Voort)
Newsgroups: comp.compilers
Date: 2 Aug 2001 02:30:32 -0400
Organization: Eindhoven University of Technology, The Netherlands
References: 01-07-153 01-07-160
Keywords: syntax, design
Posted-Date: 02 Aug 2001 02:30:32 EDT

Wclodius wrote:
>>"Joachim Durchholz" <joachim_d@gmx.de> schreibt:
>>
>>>An interesting variation of this is the use of unindentation as "end"
>>>marker. This has been done e.g. in Python and Haskell.
>>
>>Did you ever see source code with a mix of tab and space characters?
>>Such text becomes unreadable to both a human and a compiler, when the
>>tab size is changed to some user defined value. The whole source code
>>then is bound to a specific editor :-(
>
> The solution is easy. Define the language so that indentation using
> tabs is illegal.


Which redefines half of all existing editors as well :-)


And all tools that (might) operate on plain text.


Post a followup to this message

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