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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!eu.feeder.erje.net!feeder.erje.net!us.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: a new language, designed for safety ! Date: Wed, 04 Jun 2014 15:43:46 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <3bf7907b-2265-4314-a693-74792df531d1@googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1401911017 4040 192.74.137.71 (4 Jun 2014 19:43:37 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 4 Jun 2014 19:43:37 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:tbNVf8+LL8eVdh8x4Ua8NNSWLRQ= Xref: news.eternal-september.org comp.lang.ada:20133 Date: 2014-06-04T15:43:46-04:00 List-Id: "Dan'l Miller" writes: > ...This is not surprising for the 1980s-vintage > Objective-C, back when Smalltalk was often held up as the ultimate > state-of-the-art in OO; Smalltalk had much the same fundamental > unsafety, due in turn much the same selector mechanisms as > Objective-C. Yeah, Objective-C is basically just Smalltalk tacked onto the side of C. But I wouldn't call it "unsafe" if you get a run-time error. To me, "unsafe" means "misuse can cause unpredictable behavior". Array indexing is safe in Ada (you get a run-time error if you go out of bounds), but unsafe in C (anything can happen if you go out of bounds). Anyway, I guess your point is that Ada prevents dangling dispatch at compile time, which is a good thing, whereas Swift, Objective C, and Smalltalk do not. - Bob