W
Wolfgang Draxinger
Does anybody know, why a special case for 'const' has been
introduced that it is R-associative, if it is at the beginning
of a declaration / definition, but otherwise L-associative
(which I find easier to read BTW).
In my code one will always find me writing
int const a;
instead of the equivalent
const int a;
The former looks much nicer to me. Also to me it looks a lot less
confusing to write
int const * const foo;
instead of
const int * const foo;
Wolfgang
introduced that it is R-associative, if it is at the beginning
of a declaration / definition, but otherwise L-associative
(which I find easier to read BTW).
In my code one will always find me writing
int const a;
instead of the equivalent
const int a;
The former looks much nicer to me. Also to me it looks a lot less
confusing to write
int const * const foo;
instead of
const int * const foo;
Wolfgang