Re: Is the dangling else a syntax bug?

genew@shuswap.net (Gene Wirchenko)
17 Jul 2001 23:25:55 -0400

          From comp.compilers

Related articles
[5 earlier articles]
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)
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)
[8 later articles]
| List of all articles for this month |
From: genew@shuswap.net (Gene Wirchenko)
Newsgroups: comp.compilers
Date: 17 Jul 2001 23:25:55 -0400
Organization: Compilers Central
References: 01-06-073 01-07-020 01-07-029 01-07-045
Keywords: syntax
Posted-Date: 17 Jul 2001 23:25:55 EDT

ralph@inputplus.demon.co.uk (Ralph Corderoy) wrote:


>I take your point.
>
>> However, in natural languages, omitting a comma is rarely a cause for
>> misunderstanding, whereas in programming languages it is almost
>> always considered a syntactic error.


          Bwahahahahaha!


>That reminds me of an example used in support of the `Oxford' comma.
>
> I'd like to thank my parents, Mother Theresa and God.
>
>versus
>
> I'd like to thank my parents, Mother Theresa, and God.


          Here's another argument for commas (courtesey of a discussion in
alt.usage.english some months back):
                    Once she had the dress off she would go in search of
                                                                ^
                    matching shoes, gloves and a handbag.
Somewhat different meaning depending on whether there's a comma at the
caret. With no comma there, I would put one after "off" to avoid
ambiguity.


Sincerely,


Gene Wirchenko


Post a followup to this message

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