comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.invalid>
Subject: Re: How to get this space away?
Date: Thu, 04 Jun 2015 11:37:41 +0200
Date: 2015-06-04T11:37:41+02:00	[thread overview]
Message-ID: <mkp66o$h4n$1@dont-email.me> (raw)
In-Reply-To: <mknp7j$4s1$1@dont-email.me>

On 03.06.15 22:50, J-P. Rosen wrote:
> Le 03/06/2015 21:07, Laurent a écrit :
>> On Wednesday, June 3, 2015 at 12:28:34 AM UTC+2, Jeffrey R. Carter wrote:
>>
>>>> 'Image always adds a leading space
>
> This dates back to Ada83. The initial idea was that a positive number
> and its opposite (negative) number should have the same number of
> characters.

Since 'Image and 'Width go together, would there be a choice?

> In practice, it turned out to be a bad idea,  (...)
> The only possibility would be to define a new attribute. Small effort,
> small value.

Ada could stop supporting 'Image entirely, and instead create

   Annex F.4, Edited Output for Integer Types

If 'Image was intended for debugging purposes, It is quite obvious
that 'Image keeps being misused. But:

  I/O is what we are payed for.
  I/O is the raison d'être of programming.

So, please, stop helping programmers evade proper I/O.
So many languages have made everyone suffer from poorly
defined I/O facilities, in effect making everyone use I/O
facilities developed "for teaching", or, in case of Ada,
for debugging.



  parent reply	other threads:[~2015-06-04  9:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 20:32 How to get this space away? Laurent
2015-06-02 20:53 ` Simon Wright
2015-06-03 18:59   ` Laurent
2015-06-03 19:30     ` Simon Wright
2015-06-02 22:28 ` Jeffrey R. Carter
2015-06-03 19:07   ` Laurent
2015-06-03 20:50     ` J-P. Rosen
2015-06-03 23:00       ` Randy Brukardt
2015-06-05  9:26         ` Stephen Davies
2015-06-08 12:33         ` Brad Moore
2015-06-08 19:47           ` Randy Brukardt
2015-06-08 20:25             ` Jeffrey R. Carter
2015-06-09 14:38               ` Brad Moore
2015-06-04  9:37       ` Georg Bauhaus [this message]
2015-06-04 12:32         ` Dmitry A. Kazakov
2015-06-05 13:02       ` Laurent
2015-06-06  0:02         ` Dennis Lee Bieber
2015-06-03  7:28 ` Dmitry A. Kazakov
2015-06-03 19:19   ` Laurent
2015-06-08 22:43 ` wowwomenonwheels205
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox