2 ms·
Agree 100%. It is a tradeoff that detracts from ease of human interpretation. Because C makes that tradeoff, int *a; is idiomatic C and int* a; isn't.
by bigdict 6y ago
Agree 100%. It is a tradeoff that detracts from ease of human interpretation.
Because C makes that tradeoff,
int *a;
is idiomatic C and
int* a;
isn't.
For C programming to be pleasant, you have to understand and agree with the philosophy at least while you're writing C.
Go developers changed this in a particularly elegant way. Here's what Rob Pike has to say: https://blog.golang.org/declaration-syntax https://blog.golang.org/declaration-syntax.
I too gained a better understanding of the problem after going through a compiler-writing exercise.