From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Quantified Expressions: "some"
Date: Thu, 18 Nov 2010 09:47:46 +0100
Date: 2010-11-18T09:47:46+01:00 [thread overview]
Message-ID: <13vas9njbsmps.1npsunlgz5n4z$.dlg@40tude.net> (raw)
In-Reply-To: ic1uin$nge$1@munin.nbi.dk
On Wed, 17 Nov 2010 19:12:53 -0600, Randy Brukardt wrote:
> "Dmitry A. Kazakov" <mailbox@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 "=>".
> But I was the only one.
I'd prefer a set-measure notation:
P'Min (1 | 3..5 | F'Range) -- or P'Inf
P'Max (1 | 3..5 | F'Range) -- or P'Sup
Of course first-class functions with operations on them and sets were more
suitable for this stuff, i.e. "apply f to S, then measure the result with
m:
Min (P (1 | 3..5 | F'Range))
But it is difficult to do.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2010-11-18 8:47 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 [this message]
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
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