From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:1a92:b0:76d:8460:70e9 with SMTP id bl18-20020a05620a1a9200b0076d846070e9mr133949qkb.7.1692786007935; Wed, 23 Aug 2023 03:20:07 -0700 (PDT) X-Received: by 2002:a17:903:1c4:b0:1bc:7c69:925c with SMTP id e4-20020a17090301c400b001bc7c69925cmr5470038plh.10.1692786007660; Wed, 23 Aug 2023 03:20:07 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.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: Wed, 23 Aug 2023 03:20:07 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=205.239.40.3; posting-account=YRfoYAoAAADhSEO2nLYx10QUUvp8akYl NNTP-Posting-Host: 205.239.40.3 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4c861cba-9ad6-429d-b530-a40c45dfc176n@googlegroups.com> Subject: Re: Parameterised 'Image Attributes From: Stephen Davies Injection-Date: Wed, 23 Aug 2023 10:20:07 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2091 Xref: news.eternal-september.org comp.lang.ada:65554 List-Id: On Tuesday, 22 August 2023 at 09:13:50 UTC+1, Dmitry A. Kazakov wrote: > Nobody loves the syntax T'Image (X) or X'Image! Give programmers X.Image > and [].Image (X) and they will > forget about the attribute. I have no issue with the 'Image syntax. Perhaps the formatting parameters could be restricted to T'Image(X) and not available for X'Image? Or, maybe the language should just add 'Trim_Image and 'Trim_Width and leave the advanced formatting to a library. Actually, I think it might also be nice if Float'Trim_Image(X) returned a string that only used exponential notation for very large or very small values (which seems to be the default behaviour in Python). Different names would then be needed (Tidy_Image and Tidy_Width?).