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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,967ae26df92535de X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-18 06:10:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: New Software Forum Date: 18 Sep 2002 09:04:39 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3D8356A7.9010208@worldnet.att.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1032354860 20120 128.183.220.71 (18 Sep 2002 13:14:20 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 18 Sep 2002 13:14:20 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:29105 Date: 2002-09-18T13:14:20+00:00 List-Id: Preben Randhol 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