From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7332b19c66a79eea X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Quantified Expressions: "some" Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4ce31bb6$0$7670$9b4e6d93@newsspool1.arcor-online.net> <2d44ff4d-b3ad-4593-8492-4d16fb6b6a2e@j2g2000yqf.googlegroups.com> <1t7pvrh3i022d.8t9yqjonagar$.dlg@40tude.net> <4ce3e3c3$0$6987$9b4e6d93@newsspool4.arcor-online.net> Date: Thu, 18 Nov 2010 09:47:46 +0100 Message-ID: <13vas9njbsmps.1npsunlgz5n4z$.dlg@40tude.net> NNTP-Posting-Date: 18 Nov 2010 09:47:46 CET NNTP-Posting-Host: 217db701.newsspool2.arcor-online.net X-Trace: DXC=k4]_1FU>6i[mG86`U=_nC_A9EHlD;3YcR4Fo<]lROoRQ8kF On Wed, 17 Nov 2010 19:12:53 -0600, Randy Brukardt wrote: > "Dmitry A. Kazakov" 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