From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Quantified Expressions: "some"
Date: Thu, 18 Nov 2010 11:07:31 +0100
Date: 2010-11-18T11:07:32+01:00 [thread overview]
Message-ID: <1vfx8yvlwn7g8.1lrdsplxe0f3r.dlg@40tude.net> (raw)
In-Reply-To: 949be87b-78a2-4e7b-8b38-40f57a69eb55@d20g2000yqg.googlegroups.com
On Thu, 18 Nov 2010 01:48:07 -0800 (PST), AdaMagica wrote:
> On 18 Nov., 09:47, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> wrote:
>> On Wed, 17 Nov 2010 19:12:53 -0600, Randy Brukardt wrote:
>>> "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de> wrote in message
>>>news:puezn7v9naom.1nrc5rh8wzm7p.dlg@40tude.net...
>>>> On Wed, 17 Nov 2010 17:14:27 +0100, J-P. Rosen wrote:
>>> ...
>>>>> Actually, It's been decided recently to change "|" to "=>", so it will
>>>>> read:
>>>>> ( for all X in 1 | 3..5 | F'Range => P(X) )
>>
>>>> Not much better: "=>" means "implies." P is neither implied nor selected.
>>>> Actually it is antecedent, on the left side. IF kind of X, such that P(X)
>>>> AND X in the set, THEN something [ ELSE something ].
>>
>>> "=>" is what SPARK uses.
>>
>>> I personally agreed with you and voted for neither.
>>
>> At least they could use "when" instead of "=>".
>
> ( for all X in 1 | 3..5 | F'Range when P(X) ) ?????
>
> That's nonsense, it's the other way round (compare exit L when ...
> case X is when ...).
exit when for all X in 1 | 3..5 | F'Range when P(X);
does not look bad, except that "for" is misplaced. Should be
exit when all X in 1 | 3..5 | F'Range when P(X);
> If we are dreaming up syntax:
>
> Use a colon or double colon:
>
> ( for all X in 1 | 3..5 | F'Range :: P(X) )
Colon is usually used as <set> : <function> => <set>. It should be kind of:
1 | 3..5 | F'Range : P => (others => True)
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2010-11-18 10:07 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 [this message]
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
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