Deutsch   English   Français   Italiano  
<vtcfhp$325g6$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: do { quit; } else { }
Date: Sat, 12 Apr 2025 02:27:21 +0100
Organization: A noiseless patient Spider
Lines: 87
Message-ID: <vtcfhp$325g6$1@dont-email.me>
References: <vspbjh$8dvd$1@dont-email.me> <vt3iqh$2ka99$1@dont-email.me>
 <vt5fed$ccri$1@dont-email.me> <vt5js2$g1t7$1@dont-email.me>
 <20250409142303.00004645@yahoo.com> <87ikndqabc.fsf@nosuchdomain.example.com>
 <20250410115501.000037a5@yahoo.com> <vt8ei8$2vn84$1@dont-email.me>
 <20250410080629.532@kylheku.com> <vt94q5$3jjod$1@dont-email.me>
 <vt9628$3hhr8$3@dont-email.me> <vtammh$174ev$1@dont-email.me>
 <vtavn9$1dp7m$3@dont-email.me> <vtb8nv$1plb2$2@dont-email.me>
 <vtba81$1qfbm$1@dont-email.me> <vtbc6o$1te2o$1@dont-email.me>
 <vtbhjv$24api$1@dont-email.me> <vtbn2k$293r1$1@dont-email.me>
 <vtc19j$2kqlj$1@dont-email.me> <87a58mqt2o.fsf@nosuchdomain.example.com>
 <vtc7mp$2q5hr$1@dont-email.me> <875xjaqmgf.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 12 Apr 2025 03:27:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5b5cdf67fe25ae40eb3e543c34a3e4c8";
	logging-data="3216902"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19K9sncGANbwRdz6fruduXs"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jQcAdiy1HXHYmDQRjgT2h/ZV/HQ=
Content-Language: en-GB
In-Reply-To: <875xjaqmgf.fsf@nosuchdomain.example.com>

On 12/04/2025 00:59, Keith Thompson wrote:
> bart <bc@freeuk.com> writes:
>> On 11/04/2025 22:36, Keith Thompson wrote:
>>> bart <bc@freeuk.com> writes:
>>> [...]
>>>> Rubbish. Everyone finds C declaration syntax a nightmare.
>>> Rubbish.  I find C declaration syntax annoying, not a "nightmare".
>>
>> Annoying would be having to get letter case or punctuation just right.
> [...]
>> So, yeah, a 'nightmare' is more apt than 'annoying'.
> 
> Bart, bart, bart.





> You made a false statement about how *everyone* feels about
> C's declaration syntax.

So what would be a true statement? That everyone finds it at least midly 
annoying?

C type syntax is famous for being difficult and confusing; I think most 
will agree about that. Even the creators said so.

This was the discussion:

BC:
 > Humans have to parse it too. C must be the only non-esoteric language 
where you need to use third-party tools (CDECL etc) to make sense of 
type-declarations. Either that or follow complex spirular algorithms to 
[decode] them.

DB:
I have never heard of anyone other than you who views cdecl as a necessity.

So, is that last statement true or not? I didn't say it was a necessity, 
but that you need to use such tools or special methods to understand 
them. And clearly, that would be the more complicated ones; people can 
usually cope with 'int'.

I replied to one sweeping statement with another.

>  We all know that you consider it to be
> a nightmare.  I don't think I've ever said or implied that you
> shouldn't feel that way.  You think everyone *should* find it
> a nightmare?  Fine.
> 
> You cannot possibly be so deluded that you think everyone feels
> the same way as you do, and we're all lying about it.

There are plenty of resources like this about:

http://www.unixwiz.net/techtips/reading-cdecl.html

https://news.ycombinator.com/item?id=42564861

Why are they even necessary?


(That last link includes this comment: "If you need a program to help 
you read C programs, that suggests a serious flaw in C."  I have to give 
quotes from others because everybody here thinks it is only me.

Here's a couple from Ritchie and Stroustrop: 
https://dev.to/pauljlucas/musings-on-c-c-declarations-169o)


> You want to be treated better?  Stop making deeply silly statements.

DB was making light of the type syntax issue and pretty much dismissed 
it out of hand. How should I have responded?

Not that it would cut any ice with him. Nothing is ever that complicated 
or too onerous or too slow or too over the top or too badly designed or ...

I suggest also that you stop taking throwaway comments too literally. 
Yet, there is probably more truth in my remark than in David's.

You might also consider that while many features of C have been copied, 
I don't know of any language that has copied its type syntax.

I wonder why? Do you think the designers had an opinion about it closer 
to mine, or to David Brown's?