comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <pcc482719@gmail.com>
Subject: Re: Quantified Expressions: "some"
Date: Thu, 18 Nov 2010 12:58:57 -0500
Date: 2010-11-18T12:58:57-05:00	[thread overview]
Message-ID: <UZmdnSgQyt529HjRRVn_vwA@giganews.com> (raw)
In-Reply-To: <8kknp7FkqpU1@mid.individual.net>

On 2010-11-18 08:24, Niklas Holsti wrote:

>> Use a colon or double colon:
>>
>> ( for all X in 1 | 3..5 | F'Range :: P(X) )
> 
> I like that. The double-colon is visually more apparent than '|' and
> there is no risk of confusion with the earlier and other meanings of
> "=>". A single colon could also work, if we don't want to add new lexemes.

I spent some time this morning reading the email discussions associated
with AI05-0176 here

http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai05s/ai05-0176-1.txt?rev=1.17

The ARG has clearly (and not surprisingly) already considered many
issues. I'd encourage anyone interested in this subject to review the
extensive discussion before speculating on alternative syntax, etc.

For example on February 24, 2010 Edmond Schonberg says,

"Slight preference for colon in this context, but that would conflict
with the new iterator syntax, where we could say:

    for all X : T of C : P (X)

which is definitely confusing.  So right arrow may be the obvious choice."

I don't know if the "new iterator syntax" is still valid but I can
certainly see how the ':' might be a less than ideal choice in the
example above.

John Barnes outlines his objection to the vertical bar in a message
dated September 15, 2010. Two of his objections would also apply to ':'
as well ("too weak a symbol" and "=> is better because SPARK uses the
same symbol for the same purpose.")

Peter



  parent reply	other threads:[~2010-11-18 17:58 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17  0:03 Quantified Expressions: "some" Georg Bauhaus
2010-11-17  6:31 ` AdaMagica
2010-11-17  8:25   ` Niklas Holsti
2010-11-17 12:29     ` Peter C. Chapin
2010-11-17 13:38       ` Georg Bauhaus
2010-11-17 10:46   ` Dmitry A. Kazakov
2010-11-17 12:05     ` (see below)
2010-11-17 13:38       ` Dmitry A. Kazakov
2010-11-17 14:16         ` Georg Bauhaus
2010-11-17 14:20           ` Dmitry A. Kazakov
2010-11-17 16:14             ` J-P. Rosen
2010-11-17 17:28               ` Dmitry A. Kazakov
2010-11-18  1:12                 ` Randy Brukardt
2010-11-18  8:47                   ` Dmitry A. Kazakov
2010-11-18  9:48                     ` AdaMagica
2010-11-18 10:07                       ` Dmitry A. Kazakov
2010-11-18 10:27                         ` AdaMagica
2010-11-18 13:24                       ` Niklas Holsti
2010-11-18 15:51                         ` Georg Bauhaus
2010-11-18 17:58                         ` Peter C. Chapin [this message]
2010-11-19 17:48                           ` Georg Bauhaus
2010-11-19 17:51                             ` Georg Bauhaus
2010-11-19 20:03                             ` Vinzent Hoefler
2010-12-19 10:04                               ` Andre
2010-11-17 11:33 ` stefan-lucks
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox