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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6327f05d4989a68d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.83.101 with SMTP id p5mr4912450wiy.0.1356187862351; Sat, 22 Dec 2012 06:51:02 -0800 (PST) Path: i11ni256695wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!feeder.erje.net!us.feeder.erje.net!gandalf.srv.welterde.de!news.swapon.de!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 19 Dec 2012 09:35:56 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Press Release - Ada 2012 Language Standard Approved by ISO References: In-Reply-To: Message-ID: <50d17c6b$0$6576$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 19 Dec 2012 09:35:55 CET NNTP-Posting-Host: 33d35ab4.newsspool3.arcor-online.net X-Trace: DXC=iY;?:6;IS3c_0Po7BmQ3]lMcF=Q^Z^V3h4Fo<]lROoRa8kFejVh_\jo[C[7\2`_X;MfZlnCkc X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-12-19T09:35:55+01:00 List-Id: On 19.12.12 00:24, Randy Brukardt wrote: > "Robert A Duff" wrote in message > news:wcc8v8vti17.fsf@shell01.TheWorld.com... >> Why does everybody neglect predicates, which are more important >> than pre/post/invariant? > > No idea. Perhaps it is because only "old Ada hands" really grok the idea of > a constrained subtype, and a predicate is just a constraint on steroids > (well, a more general constraint). Being a function, maybe the power of a predicate is at first easier to see by a "functional" programmer, who is used to predicates? There is a need for a killer example, then. Maybe an algorithm that approximates some complex result with the help of failing predicates. For example, finding two primes related in a certain way with the help of tasks while predicates steer the computation.