Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@iron_bug @d_pechkin
"emphasize that I write in C .." no problem, see above ?
"the code clarity and code style is important ": agree
"they're principally wrong": disagree
"I think that coding style is important.":agree
"they have a chaos in their head": disagree with respect to my head
a) 'int *(*f)(int *x);'
<==>
b) 'int* (*f)(int* x);'
<==>
c)
typedef int* TpIntPtr;
TpIntPtr (*f)(TpIntPtr x);
That ist the only exact correct ?.(a) Directs the focus of perception of the reader on to the dereferencing process.
(b) Directs the focus of perception to the a type centric one
(c) clearly places focus of perception type centric one.
And non of them "is principally wrong".I would predict that in an experiment concerning the speed of grasping the meaning of an expression, the result would be clearly in favor of (b).
;) And for my slowly aging eyes, even (b) is easier and thus faster to grasp than (a).
This, on the other hand:
int
*
x=5;
is clearly a style which would be undeniably error-prone ;) but still it is "exactly" correct syntactically and semantically.
But be aware, in dont want to change your falvour-prefferings.