Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c++
Subject: Re: ???Microsoft Azure CTO Mark Russinovich: C/C++ should be deprecated???
Date: Sun, 02 Oct 2022 12:57:02 -0700
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <868rlyj8xd.fsf@linuxsc.com>
References: <871qs3za1l.fsf@bsb.me.uk> <87pmfnxlt0.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader01.eternal-september.org; posting-host="ebe72c05e9167e1dd1c2f9bc3baee014"; logging-data="1901219"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VV0W99UCYLVKtonDbLVsBG5RdZ3RAr+s="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:v9/tC3gaGPCS/Xe+OpBZt7VwO7k= sha1:B6yo78Q48a203IQdg6jK3Ushb60=
Xref: csiph.com comp.lang.c++:86767
Michael S writes:
> On Friday, September 23, 2022 at 1:02:17 PM UTC+3, Juha Nieminen wrote:
>
>> As another example: "convert(...)" might feel more convenient to
>> write than something like "convert_to_utf8_from_utf16(...)", but
>> you have to think about the code from the perspective of someone
>> who is reading it and doesn't already know what it's doing.
>> The latter may be significantly longer but it expresses infinitely
>> more clearly what it's doing (even without seeing what the parameters
>> are). Someone seeing just "convert(...)" in the code can't have any
>> idea what it's doing.
>
> It sounds like an argument against C++-style static polymorphism.
Do you mean ad hoc polymorphism, aka function overloading? Or do
you mean something else, e.g., template-related?