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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,587e0e0a16d65b10 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!h20g2000yqn.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Invade wikipedia! Date: Thu, 26 Feb 2009 08:37:17 -0800 (PST) Organization: http://groups.google.com Message-ID: <4cae8ebc-de2f-4d94-b810-6eaa0ecb3f22@h20g2000yqn.googlegroups.com> References: <3286og.hl4.ln@hunter.axlog.fr> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1235666238 32405 127.0.0.1 (26 Feb 2009 16:37:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Feb 2009 16:37:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h20g2000yqn.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4791 Date: 2009-02-26T08:37:17-08:00 List-Id: On Feb 26, 6:13 am, Jean-Pierre Rosen wrote: > Ivan Levashew a =E9crit : > [...]> Integer_Text_IO.Put (8, Width =3D> 0); > > [...] > > But, once again, it looks stupid. > > The output is the same, and it looks less stupid if you write: > Integer_Text_IO.Put (8, Width =3D> 1); > > > Integer'Image (-2) =3D "-2" -- no space here no matter how useful it is > > The whole idea of text_io was to make well aligned columns, which is > sensible for files (as opposed to user messages on the terminal). The > damn space was simply felt more elegant than a '+' in front of positive > numbers. Yeah, but since 'Image doesn't yield a fixed-length string, the aligned column argument doesn't make a lot of sense. I can see how it makes sense for Text_IO, but not for 'Image. Although people can try to come up with legitimate-sounding reasons why 'Image was defined the way it was, I think this is just one of those features that causes language designers to look back and say "what the #$*&(#@ were we thinking?!?!?" Unfortunately, they can't go back and change it now. And we now have Ada.Fixed_Strings.Trim to make things a little more tolerable, and other library packages to do things the way they should have been done in the first place. -- Adam