From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: New Software Forum
Date: 18 Sep 2002 09:04:39 -0400
Date: 2002-09-18T13:14:20+00:00 [thread overview]
Message-ID: <uwupjbg9k.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: slrnaoeprn.vb.randhol+news@kiuk0156.chembio.ntnu.no
Preben Randhol <randhol+news@pvv.org> writes:
> On Tue, 17 Sep 2002 18:41:43 +0200, Ingo Marks wrote:
> > Ingo Marks wrote:
> >
> > or even this way :-)
> >
> > Put_Line ("Iteration" & Num &
> > " Result:" & Result &
> > " Time:" & Elapsed_Time);
>
> Well now we are borderlining the poor readability. In the previous
> version I could at least know that Elapsed_Time was a Duration here it
> can be anything. This is one of the great features of Ada that it is so
> self-documenting.
It has _never_ been a feature of Ada that the type of an object was
obvious at the point of the use of the object. Consider:
A := B + C;
Is A an Integer, Cartestian Vector, or directed graph? You have no
idea. However, any reasonable Ada IDE will provide a way to popup the
definition of A, so you can see the type.
In fact, the fact that there is no type information cluttering the
statement is a feature. Compare it to the use of "Hungarian notation"
in some Windows code.
My only problem with Ingo's suggestion is that it is a pain to provide
the "appropriate string package", that defines all of the necessary
variations of "&". That's why I wrote Auto_Text_IO
(http://users.erols.com/leakstan/Stephe/Ada/auto_text_io.html); it
writes a similar package for me.
--
-- Stephe
next prev parent reply other threads:[~2002-09-18 13:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-14 15:33 New Software Forum Jim Rogers
2002-09-15 16:57 ` Daniel Dudley
2002-09-15 18:29 ` Marc Spitzer
2002-09-15 19:22 ` Jim Rogers
2002-09-15 19:33 ` Jim Rogers
2002-09-15 23:27 ` CodeMage
2002-09-16 16:43 ` Adrian Hoe
2002-09-16 18:48 ` sk
2002-09-16 23:43 ` Keith Thompson
2002-09-17 7:38 ` CodeMage
2002-09-16 1:17 ` Jeffrey Carter
2002-09-16 13:51 ` Jim Rogers
2002-09-17 4:27 ` Daniel Dudley
2002-09-17 13:00 ` Ingo Marks
2002-09-17 13:35 ` Preben Randhol
2002-09-17 16:39 ` Ingo Marks
2002-09-17 16:41 ` Ingo Marks
2002-09-17 17:33 ` Preben Randhol
2002-09-17 19:07 ` Ingo Marks
2002-09-17 21:03 ` Simon Wright
2002-09-18 13:04 ` Stephen Leake [this message]
2002-09-18 13:38 ` Preben Randhol
2002-09-28 16:57 ` Richard Riehle
2002-09-18 14:07 ` Kevin Cline
2002-09-18 17:46 ` Ingo Marks
2002-09-18 10:09 ` Ingo Marks
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox