Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: We have a new standard! Date: Fri, 03 Jan 2025 11:19:53 -0800 Organization: None to speak of Lines: 30 Message-ID: <87ikqvso12.fsf@nosuchdomain.example.com> References: <20250101182527.00004b2f@yahoo.com> <87y0zssxpy.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 03 Jan 2025 20:19:54 +0100 (CET) Injection-Info: dont-email.me; posting-host="effc54326606164512e5c838bb1e0c9c"; logging-data="47228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Q5vFu9ZEqIakQhUQvZeOi" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:fjqoXAnu0a/9OGP8MQBOL/3NKAk= sha1:9SOm3h2Ft22LectwYTGPSzERcrY= Xref: csiph.com comp.lang.c++:121400 Muttley@DastardlyHQ.org writes: > On Thu, 02 Jan 2025 13:38:17 -0800 > Keith Thompson wibbled: [...] >>I wouldn't have minded having new operators for I/O, but I'm not sure >>what characters would have been used. Perhaps something involving >>"@"? > > It doesn't have to be pretty, so long as its unique. It doesn't have to be unique, as demonstrated by several decades of experience with << and >>. In my opinion, legibility and ease of typing are more important than uniqueness. << and >> are easier to type and more visually suggestive than, say, @< and @>. C and C++ reuse operator symbols because they're chosen from the ASCII punctuation characters, and there are only so many of them. (Requiring non-ASCII characters for some operators would be inconvenient; I don't have them on my keyboard.) Note that operators don't have to consist of punctuation symbols (see sizeof, new, etc.). An alternative might have been to introduce "in" and "out" operators in place of ">> and "<<". But I wouldn't suggest making such a change now. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */