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,1d321b3a6b8bcab2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-10 05:49:32 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!csn!ub!news.kei.com!news.mathworks.com!uunet!pipex!uknet!hrc63!gmrc.gecm.com!valiant!bill From: bill@valiant (R.A.L Williams) Newsgroups: comp.lang.ada Subject: "Subtract C, add Ada" Date: 10 Feb 1995 13:49:32 GMT Organization: GEC-Marconi Research Centre Message-ID: <3hfqtc$iko@miranda.gmrc.gecm.com> NNTP-Posting-Host: valiant.gmrc.gecm.com X-Newsreader: TIN [version 1.2 PL1] Date: 1995-02-10T13:49:32+00:00 List-Id: In article <3h1lfl$lr4@Starbase.NeoSoft.COM> Samuel Mize wrote: : In article <3gsr0e$oin@miranda.gmrc.gecm.com>, : R.A.L Williams wrote: : >Never mind all that code, the main feature of the C code was that, at : >the termination of the loop, the variable 'c' contained the character : >which caused the loop to terminate. Are you suggesting a 'LastChar' : >function as well. : In the Ada rewrite I provided, "at the termination of the loop, the : variable 'c' contained the character which caused the loop to : terminate." However, it's contained in the package Files_Like_C. Yes, I'm sorry. You're absolutely write. In that case, I see nothing wrong with the code, but, are you suggesting that that much code is more 'readable' than the C equivalent. OK, this is a relatively trivial example. Anyone who can't understand your code probably shouldn't be reading it anyway! Nonetheless the point remains that Ada code is more verbose than C, and this can IMO obscure, rather than enhance, readability. : We're now discussing a difference in design philosophy in standard : I/O packages, not a difference in the languages. My point was that : you could implement either I/O design philosophy in Ada. Mr. Ichbia : et al picked a different design for their standard I/O package, : named Text_Io, so you will have to code your own replacement if you : want to use C-style I/O. Just as if you wanted to use C-style I/O : in PL/I or Fortran. You *can* do this. I wasn't particularly concerned in my original postings about specific features such as I/O libraries. I worry more about the structure of Ada giving me more 'hoops to jump through' to the extent that code is *less* readable. Having been involved in a fair number of code walkthroughs recently, 'reviewer fatigue' is an important issue. : Sam Mize - smize@starbase.neosoft.com Bill Williams