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,FREEMAIL_FROM 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 07:07:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: kcline17@hotmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: New Software Forum Date: 18 Sep 2002 07:07:11 -0700 Organization: http://groups.google.com/ Message-ID: References: <3D8356A7.9010208@worldnet.att.net> NNTP-Posting-Host: 192.76.70.227 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1032358031 19836 127.0.0.1 (18 Sep 2002 14:07:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 18 Sep 2002 14:07:11 GMT Xref: archiver1.google.com comp.lang.ada:29109 Date: 2002-09-18T14:07:11+00:00 List-Id: Preben Randhol wrote in message news:... > 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. This version is easier to read and easier to maintain. I don't need to know the type of Elapsed_Time to understand this statement, and the compiler already knows the type and shouldn't need to be told again. Repeating the type here reduces readability and makes the code more sensitive to a change in the type of Elapsed_Time.