Path: csiph.com!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: What a reference actually is Date: Sun, 20 Nov 2022 05:48:21 -0800 Organization: A noiseless patient Spider Lines: 13 Message-ID: <867czpbuu2.fsf@linuxsc.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader01.eternal-september.org; posting-host="a724f5b4ee1d34e760f89c516bf20c9c"; logging-data="3707309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BAvME1+qrjrPWYv0bY2pdOdiXUFurXVI=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:j6aZP1mGF2HsrAm4KAaqKGAPrMI= sha1:o0zZvyEdx87PUQ8U5JIqmI/EGSo= Xref: csiph.com comp.lang.c++:87487 Paavo Helde writes: > 17.11.2022 16:09 Michael S kirjutas: > >> For language that is so similar (nearly identical) to C at the level of >> "virtual machine", as is C++, the concept of reference is just unnecessary. >> Don't use references in your code except when forced by interfaces that >> are out of your control! Then people that are going to read and comprehend >> your code will be thankful. > > Aren't most languages similar to C at the level of virtual machine? No. Many are. Many are not.