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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:2c0c:: with SMTP id d12mr19961682qta.284.1587927442974; Sun, 26 Apr 2020 11:57:22 -0700 (PDT) X-Received: by 2002:aca:c5c7:: with SMTP id v190mr5741010oif.175.1587927442677; Sun, 26 Apr 2020 11:57:22 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 26 Apr 2020 11:57:22 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2a02:c7d:897d:6600:d063:defd:e8ee:2ff4; posting-account=YRfoYAoAAADhSEO2nLYx10QUUvp8akYl NNTP-Posting-Host: 2a02:c7d:897d:6600:d063:defd:e8ee:2ff4 References: <26e971a9-6fcc-4e4c-84ee-d74aecd5b217@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Image attribute (yet again) From: Stephen Davies Injection-Date: Sun, 26 Apr 2020 18:57:22 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2365 X-Received-Body-CRC: 2978685247 Xref: reader01.eternal-september.org comp.lang.ada:58503 Date: 2020-04-26T11:57:22-07:00 List-Id: On Sunday, 26 April 2020 07:05:59 UTC+1, J-P. Rosen wrote: > Personnaly, I am sick of people wanting to change the language just to > save having to write a three-line function. I could write a three-line function to do 'Min but I appreciate it being party of the language. > 'Image is not intending for elaborate formatting Displaying numbers without extraneous spaces is hardly elaborate. > it's a quick debugging help. I have used 'Image in delivered code and I doubt I'm alone. Furthermore, it's useful when first learning Ada, and the leading space is not a good advert for students. > Text_IO has all formatting features for proper IO. Text_IO is somewhat lacking when it comes to formatting (e.g. see Jere's and Oliver's replies). A couple of additional thoughts:- 1. If Trim_Image were added then Trim_Width should also be added, which could be useful even when Integer_IO.Put is being used. 2. If the language won't change (and maybe even if it does change) perhaps if would be nice if Gnat added S'Trmg (c.f. S'Img).