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=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Parameterised 'Image Attributes Date: Sat, 19 Aug 2023 13:56:14 +0200 Organization: Adalog Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 19 Aug 2023 11:56:08 -0000 (UTC) Injection-Info: dont-email.me; posting-host="5313c0efa581855a557fbab8f534a02e"; logging-data="841033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18984UtjI4VewniG6l9s6k8" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cancel-Lock: sha1:sF2QzPtftO62UZRGv1m1tVGI4XU= In-Reply-To: Content-Language: en-US, fr Xref: news.eternal-september.org comp.lang.ada:65539 List-Id: Le 19/08/2023 à 12:03, Dmitry A. Kazakov a écrit : > On 2023-08-19 11:14, J-P. Rosen wrote: > >> The intent of the 'Image attribute is to have a quick representation, >> mainly for debugging purposes. > > It seems that for the vast majority of Ada users this intent was wrong... The vast majority of Ada users ignore a number of useful features provided by the language, and keep asking for improvements that are already there... >> If you want nice formatted output, use the Put procedure on String >> from Text_IO. > > Put does not supersede 'Image. Put is I/O. 'Image is pure string > formatting. Put is generic and requires instantiation of some package > with some difficult to guess name. 'Image is built-in [statically] > dispatching and generated automatically by the compiler. > Yes, put has nothing to do with 'Image. Yes, put requires instantiation. So what? Ada is more verbose, in favor of stricter typing. Ease of reading over ease of writing has always been a major design principle of Ada - although I confess it had a bad effect on its popularity, people want to write fast and ignore long term maintenance issues. If you want formatting on an integer type (with or without IO), you instantiate Integer_IO. I don't find it hard to guess the name... Maybe you had something else in mind? -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX https://www.adalog.fr https://www.adacontrol.fr