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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Your wish list for Ada 202X Date: Sun, 30 Mar 2014 14:24:11 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <7f1c01c5-3563-4b94-9831-152dbbf2ecdc@googlegroups.com> <1656778100417879549.835031laguest-archeia.com@nntp.aioe.org> Injection-Date: Sun, 30 Mar 2014 14:24:11 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="23126"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19F1g/m/XCJwN85VGrVNgE57NJT1J7bhmM=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:hvhFBn0O5/mU5R9O9dhGU81AuhU= Xref: news.eternal-september.org comp.lang.ada:19043 Date: 2014-03-30T14:24:11+00:00 List-Id: On 2014-03-30, Luke A Guest wrote: > wrote: >> One wish to ease Input/output : >> To have some equivalent of C primitive : printf("%c %c %c %c %c \n %c %c %c %c %c \n", > > God no. This requires parsing the string in every call, the Ada does it no > is superior. Plus it requires parameter passing from the right rather than > the left. The Ada way is ok for simple I/O. What about when you want to produce a formatted report ? Regardless of whether you keep the current I/O method only or add something printf style, it's far more logical and cleaner for the actual internal to external conversion to be conceptually a part of the data type rather than yet _another_ package within Text_IO. (Basically, you need a seriously enhanced version of 'Image with Text_IO providing the basic non datatype specific I/O framework and the data type itself doing the formatting/conversion to the requested output length, editing and precision when applicable.) This stuff belongs with the data type, not with some Text_IO package. The same types of comments apply to input as well. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world