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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Intervention needed? Date: Sat, 23 Mar 2019 16:56:59 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <6e1977a5-701e-4b4f-a937-a1b89d9127f0@googlegroups.com> <6f9ea847-2903-48c8-9afc-930201f2765a@googlegroups.com> <87zhpq33h1.fsf@nightsong.com> <5dbd0a83-2d28-4c39-a973-2f0365d93846@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 23 Mar 2019 15:56:59 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="1527ba496dc991e9b9de637867662f54"; logging-data="8300"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XyzHgMGIi+j6zohK5XdybkgcIll8fYzI=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Cancel-Lock: sha1:Z7BBZuhGpdur/yQRR6pTtAs6UGQ= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:55939 Date: 2019-03-23T16:56:59+01:00 List-Id: On 3/22/19 3:26 AM, Randy Brukardt wrote: > > But then why do you need pointers [in Rust] at all? The only cases where they are > interesting is when they are heavily aliased; otherwise, you're better off > using containers from the standard library or even your own types (as in Ada > discriminated records). And it's that sort of aliasing that Rust is aiming > to eliminate. From what I've read about Rust, it's a fairly typical C-family language, except for the borrow rules. Pointers (by whatever name and with whatever restrictions) are pervasive. One must explicitly pass a pointer to avoid pass-by-copy for large objects, or to obtain [in] out semantics. Every example of Rust I've seen has been filled with the various symbols for pointers. -- Jeff Carter "They name the boy Jonathan Ralph Starkwell, after Virgil's mother." Take the Money and Run 141