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,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.211.136 with SMTP id nc8mr16943002pbc.6.1335900624851; Tue, 01 May 2012 12:30:24 -0700 (PDT) Path: r9ni120699pbh.0!nntp.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Tue, 1 May 2012 21:30:22 +0200 Organization: cbb software GmbH Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <6167748.344.1335524349986.JavaMail.geo-discussion-forums@yncd3> <31031393.3509.1335770929925.JavaMail.geo-discussion-forums@vbjb10> <1632135.1857.1335857306358.JavaMail.geo-discussion-forums@ynjb15> <33504818.125.1335892543393.JavaMail.geo-discussion-forums@ynbv35> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: KA5xyyPKkGZLxk9XJsNqLQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-05-01T21:30:22+02:00 List-Id: On Tue, 1 May 2012 10:15:43 -0700 (PDT), Shark8 wrote: > Or, I suppose that since this is a "feature X would be cool" thread, > something like String'Trim( " DATA STRING " ) to return "DATA STRING" > attribute; much like we have Float'Truncation(X). Seems reasonable to me. > > It might be a little wordier than some would like; but Ada's always > emphasized readability, and the above method seems to fit in well, > especially considering the 'Truncation attribute. Neither adds anything to readability. T'Foo (X) attributes are just noise. Float'Truncation (X) should have been X'Truncated or [X]. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de