4 ms·
But then you lose C's nice property that declaration and use are the same syntax. For example, D also uses a similar type syntax, so in D if you declare: in
by Peaker 10y ago
But then you lose C's nice property that declaration and use are the same syntax.
For example, D also uses a similar type syntax, so in D if you declare:
int[10][20] x;
x[19][9] // is legal
In C:
int x[10][20];
x[9][19] // is legal
I think the correct solution would have been to make pointer syntax post-fix like the arrays and functions, so that you get the best of both worlds. Go-like declarations and C-like matchup between use and declarations.