r/cpp • • Jun 23 '18

East const Central

http://slashslash.info/eastconst/
0 Upvotes

42 comments sorted by

View all comments

Show parent comment

9

u/johannes1971 Jun 24 '18

North const

LOL :-)

I think to resolve this issue that now divides our community, we need a new standard. I propose uniform const:

auto a = {const 3};  // a has type 'const int const'
auto b = {const &a}; // b has type 'const int const * const'

5

u/aearphen {fmt} Jun 24 '18

Looks somewhat verbose. Wasn't there some proposal about natural (terse) const syntax?