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,5cb36983754f64da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-05 15:07:15 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!news.worldonline.be!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: No call for Ada Date: 06 Apr 2004 00:09:37 +0200 Organization: Worldonline Belgium Sender: lbrenta@deuteronomy Message-ID: <8765ceoz4u.fsf@insalien.org> References: <20040206174017.7E84F4C4114@lovelace.ada-france.org> <54759e7e.0402071124.322ea376@posting.google.com> <87r7v5zao0.fsf@insalien.org> <6803831.c4KqqVc08g@linux1.krischik.com> <87vfkgy9z6.fsf@insalien.org> <87zn9sjc5r.fsf@deneb.enyo.de> NNTP-Posting-Host: 83-134-242-55.lindthout.goplus.fastdsl.tiscali.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.worldonline.be 1081202833 3895 83.134.242.55 (5 Apr 2004 22:07:13 GMT) X-Complaints-To: abuse@worldonline.be NNTP-Posting-Date: Mon, 5 Apr 2004 22:07:13 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:6756 Date: 2004-04-06T00:09:37+02:00 List-Id: "Marc A. Criley" writes: > "Florian Weimer" wrote in message > > Ludovic Brenta writes: > > > > > Is this not a strength rather than a weakness? Garbage collectors > > > encourage sloppy programming. > > > > So does Ada's type safety. > > Pardon?? > > There are only a couple ways I can think of wherevone could conceivably > argue that type safety encouraged sloppy programming: > > One way is if the programmer is just going to churn out code and then > compile it again and again and again ad nauseum while the compiler > identifies all the type conflicts after the fact. And the fixing of which > basically means going back and declaring types and variables intelligently, > which would've been much less exasperating to do at the start. Yes, but you still end up with a properly written, maintainable, Ada program :) So, the extra effort was really the programmer's fault, and the programmer was wise enough to recognise it as such and let the compiler teach him. A good apprentice of a Zen Master. Next time, this apprentice will avoid the unnecessary effort and produce a (relatively) good program on the first attempt. > Or, due to the presence of Ada's type safety, the programmer wants to > _avoid_ it, and so declares all numeric variables to be of the standard > types integer and float. And then you end up with a C program that happens to be in Ada; the programmer tries to rebel against the Master and produces bugs. > It's in dynamically typed languages where I've seen sloppy programming as > regards variable typing. Yes. -- Ludovic Brenta.