Liste des Groupes | Revenir à cl c |
On 2025-04-12, bart <bc@freeuk.com> wrote:On 12/04/2025 14:43, David Brown wrote:On 12/04/2025 03:27, bart wrote:>C type syntax is famous for being difficult and confusing; I
think most will agree about that. Even the creators said so.
I disagree with that claim. I think it is probably fair to say
that advanced, complicated and multi-layer types are difficult in
any programming language.
But a type that is a simple linear chain should be straightforward,
and usually is, just not in C. That was illustrated here:
>
array of 10 pointer to function taking int and returning int
1 2 3 4 5 6
You make a good point in that since the type constructing operators
are unary (prefix or postfix), the derivation chain is linear and
could be linearized, without the need for any precedence parentheses.
It follows the use, though.
Les messages affichés proviennent d'usenet.