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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a5e:d618:: with SMTP id w24mr12848578iom.164.1553375971063; Sat, 23 Mar 2019 14:19:31 -0700 (PDT) X-Received: by 2002:a9d:7246:: with SMTP id a6mr11599191otk.246.1553375970898; Sat, 23 Mar 2019 14:19:30 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!78no332508itl.0!news-out.google.com!l81ni360itl.0!nntp.google.com!w126no331736ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 23 Mar 2019 14:19:30 -0700 (PDT) In-Reply-To: <735761d5-f917-4477-9b0a-e0cde1ce2440@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.109.61.2; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 70.109.61.2 References: <6e1977a5-701e-4b4f-a937-a1b89d9127f0@googlegroups.com> <6f9ea847-2903-48c8-9afc-930201f2765a@googlegroups.com> <74339f3f-9591-45a3-8632-8834b4b466ab@googlegroups.com> <5be8a4cc-84de-4716-9f0c-10907f451312@googlegroups.com> <735761d5-f917-4477-9b0a-e0cde1ce2440@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0c5957e2-c15a-44b9-b2ec-481c47048cdf@googlegroups.com> Subject: Re: Intervention needed? From: Jere Injection-Date: Sat, 23 Mar 2019 21:19:31 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 3832 X-Received-Body-CRC: 2904123851 Xref: reader01.eternal-september.org comp.lang.ada:55941 Date: 2019-03-23T14:19:30-07:00 List-Id: On Saturday, March 23, 2019 at 9:59:38 AM UTC-4, Jere wrote: > On Saturday, March 23, 2019 at 3:53:34 AM UTC-4, Randy Brukardt wrote: > > "Jere" wrote in message > > ... > > > Not really. In Rust they don't even use cursors. They go straight to > > > iterators. On top of that, the combination of being able to specify the > > > lifetime of all of your variables (if you need to) and the ownership rules > > > gives them 100% safety from dangling references when they create and use > > > those iterators. > > > > If you don't store any cursors and just use iterators in Ada, you have the > > same level of safety: the tampering checks prevent any problems with > > iterators. (Well, unless you turn them off, of course, but if you remove the > > seatbelts, you can't much complain that they didn't protect you.) > > > > I'd be interested to find out how Rust deals with the need to designate > > individual elements of a container (which is the primary reason that Ada > > exposes cursors). > > > > Randy. > > Keep in mind the rust paradigm is very different than Ada's. Randy (and others), I realized I have said a lot about Rust in this discussion. I don't want overshadow the fact that I think Ada is the superior language. I've just done some programming in Rust, so I felt I could give some insight on the different aspects. I apologize if I am saying too much on the topic. I do feel there are things that Ada can learn from Rust, but that doesn't mean I think Rust is overall better.