Path: ...!feeds.phibee-telecom.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S Newsgroups: comp.lang.c Subject: Re: technology discussion =?UTF-8?Q?=E2=86=92?= does the world need a "new" C ? Date: Fri, 16 Aug 2024 12:38:10 +0300 Organization: A noiseless patient Spider Lines: 32 Message-ID: <20240816123810.0000420d@yahoo.com> References: <20240711115418.00001cdf@yahoo.com> <20240712154252.00005c2f@yahoo.com> <86o7717jj1.fsf@linuxsc.com> <20240717163457.000067bb@yahoo.com> <86a5hep45h.fsf@linuxsc.com> <87y14xsvnh.fsf@bsb.me.uk> <87sev5s51s.fsf@bsb.me.uk> <20240816121015.0000579b@yahoo.com> <87r0aoesh4.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Fri, 16 Aug 2024 11:38:17 +0200 (CEST) Injection-Info: dont-email.me; posting-host="486a67b16ca764e353afadddba5edb65"; logging-data="1468494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18B/fBIoTpNEUpDqOHCCcDY0nJIU8DshRw=" Cancel-Lock: sha1:nQqhMMwDv/HJN++uecP0CZIuQlA= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) Bytes: 2890 On Fri, 16 Aug 2024 02:18:15 -0700 Keith Thompson wrote: > Michael S writes: > [...] > > IMHO, C++ is a particularly bad example. > > Yes, C++ has call-by-reference misfeature. But arrays in C++ are > > 2nd class citizen, same as in C. They can't be assigned and can't be > > passed to callee, neither by value nor by reference. > > > > Also, I suspect that if you ask Ken Thompson, he will tell you that > > C++ does not really have 'call by reference'. Instead, it has > > references as 1st class object, so, naturally, values of references > > can be used during 'call by value'. > > I have enough of respect to KT to consider that his POV is not a > > nonsense. > > Is that an attempt at proof by authority? Yes! > Not only does Ken Thompson > have very little to do with C++, but you're basing your conclusion on > what you *suspect* he would say. > Yes, but it's not baseless. It is based on following section Go language FAQs that I assumed to be either authored or approved by KT. https://go.dev/doc/faq#pass_by_value