Re: Is the dangling else a syntax bug?

Sean Case <gsc@zip.com.au>
6 Jul 2001 16:29:53 -0400

          From comp.compilers

Related articles
Is the dangling else a syntax bug? vbdis@aol.com (2001-06-28)
Re: Is the dangling else a syntax bug? ralph@inputplus.demon.co.uk (2001-07-02)
Re: Is the dangling else a syntax bug? lhp+news@toft-hp.dk (2001-07-03)
Re: Is the dangling else a syntax bug? vbdis@aol.com (2001-07-03)
Re: Is the dangling else a syntax bug? ralph@inputplus.demon.co.uk (2001-07-06)
Re: Is the dangling else a syntax bug? ralph@inputplus.demon.co.uk (2001-07-06)
Re: Is the dangling else a syntax bug? gsc@zip.com.au (Sean Case) (2001-07-06)
Re: Is the dangling else a syntax bug? lars@bearnip.com (2001-07-06)
Re: Is the dangling else a syntax bug? vbdis@aol.com (2001-07-17)
Re: Is the dangling else a syntax bug? dynagen@eircom.net (Barry Kelly) (2001-07-17)
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)
[13 later articles]
| List of all articles for this month |

From: Sean Case <gsc@zip.com.au>
Newsgroups: comp.compilers
Date: 6 Jul 2001 16:29:53 -0400
Organization: Marginal
References: 01-06-073 01-07-020 01-07-029
Keywords: syntax, design
Posted-Date: 06 Jul 2001 16:29:53 EDT

In a comment to article 01-07-029,
  our 'steemed moderator wrote:


> [I think I've seen stats that users get statement separators wrong more
> often than statement terminators, but I can't dig them up at the moment.
> -John]


Although I haven't seen the actual studies, I understand that they were
done in the context of "open" structures (as in Algol 60, Pascal, or C),
rather than enclosed structures (Algol 68, Modula, Ada). With open
structures, a misplaced separator can cause all sorts of trouble, but
with enclosed structures it's always safe to add a superfluous semicolon.


Of course, this suggests that the answer to the original question is
"Yes."


Sean Case


--
Sean Case gsc@zipworld.com.au


Post a followup to this message

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