Simpler array declaration syntax in c++
- by AareP
In the spirit of Go-language, where simpler syntax is considered pretty important, here's a proposal for simpler array declaration in c++:
int value;
int_1 list;
int_2 table;
int_3 cube;
RECT rect;
RECT_1 rects;
Using typedefs this can expand to:
int value;
vector<int> list;
vector<int> table;
vector<int> cube;
RECT rect;
vector<RECT> rects;
Would you use it, or is there such a thing as too simple syntax?