comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: How to get this space away?
Date: Fri, 05 Jun 2015 20:02:58 -0400
Date: 2015-06-05T20:02:58-04:00	[thread overview]
Message-ID: <iid4nalvtes72q2mj9ojv0739gftnp3v4m@4ax.com> (raw)
In-Reply-To: c826bbd8-a6e6-44cd-9ee7-f5e349822f84@googlegroups.com

On Fri, 5 Jun 2015 06:02:35 -0700 (PDT), Laurent <daemon2@internet.lu>
declaimed the following:

>On Wednesday, June 3, 2015 at 10:50:07 PM UTC+2, J-P. Rosen wrote:
>
>> 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. Forcing a '+' to all positive number would not have been
>> pretty, so the design team chose to put a space for positive numbers
>> (negative numbers just have an initial '-').
>
>I won't argue about the ARG's wisdom or their choices but for me it still
>doesn't make sense. If I want to display a number (positive or negative, int,
> float, or whatever) in a string I always want it to be separated by a space.

	I suspect it is a carryover from pretty much most of the ancestral
languages. All the ones I learned on use one position for the sign, and
tend to suppress the "+" by using a space character.

	Granted those were formatted output conversions, not generic "print"
conversions. Nor where they modern scripting type languages.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

  reply	other threads:[~2015-06-06  0:02 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
2015-06-04 12:32         ` Dmitry A. Kazakov
2015-06-05 13:02       ` Laurent
2015-06-06  0:02         ` Dennis Lee Bieber [this message]
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