Path: csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: strings or enums?
Date: Sat, 05 Aug 2023 09:45:34 -0700
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <86jzu9fnf5.fsf@linuxsc.com>
References: <30ab3a27-dbe4-40ad-ad18-23f4123a56c9n@googlegroups.com> <762748f4-bfc8-4927-845d-940ee59ed838n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="943f511331d2b471aa1b6ebff38979e9"; logging-data="1910536"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZxgPvYpQaoazAKFGLAhmU2++SPt8+A1E="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:6+sI90THiH6hedRF9I7LpNbe8K4= sha1:fxV2kEWVF+srnUtpnxZ5rJAmLQ0=
Xref: csiph.com comp.lang.c:171687
Vir Campestris writes:
> On 02/08/2023 22:54, David Brown wrote:
>
>> On 02/08/2023 18:30, Malcolm McLean wrote:
>>
>>> On Wednesday, 2 August 2023 at 17:28:39 UTC+1, David Brown wrote:
>>>
>>>> On 02/08/2023 18:00, Malcolm McLean wrote:
>>>>
>>>>> If whitespace is disallowed, humans prefer names which are
>>>>> simply concatenated.
>>>>
>>>> You do not speak for humanity.
>>>
>>> Experiments have been done. I can't remember the references off
>>> the top of my head.
>>
>> I don't believe you. (I'm not saying you are lying, merely
>> mistaken or misremembering.) [...]
>
> It's certainly not my experience, and I've never seen a coding
> standard that suggests it.
>
> Compare
>
> loadasutf8wthknownformat
>
> with
> LoadAsUtf8WithKnownFormat (or loadAsUtf8WithKnownFormat)
>
> or
> load_as_utf8_with_known_format
>
> And also think would you spot loadasutf8wthunknownformat?
The idea that the just-concatenate style is widely preferred or
easier to read is completely deranged. And, I am confident, easy
to debunk through objective experimentation.