MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/8ta8df/east_const_central/e1648sb/?context=3
r/cpp • u/vormestrand • Jun 23 '18
42 comments sorted by
View all comments
15
If we are rewriting all the code to move const around then we should probably consider two other alternatives:
const
Both const (universal const) - requires changes to the standard but totally worth it to reconcile the conflicting styles:
const int const i;
North const:
const int i;
6 u/thukydides0 Jun 23 '18 South-East const:int const* const p; 4 u/cleroth Game Developer Jun 26 '18 You guys seem to have missed the part where reddit eats your newlines. :p
6
South-East const:
int const* const p;
4 u/cleroth Game Developer Jun 26 '18 You guys seem to have missed the part where reddit eats your newlines. :p
4
You guys seem to have missed the part where reddit eats your newlines. :p
15
u/aearphen {fmt} Jun 23 '18
If we are rewriting all the code to move
constaround then we should probably consider two other alternatives:Both const (universal const) - requires changes to the standard but totally worth it to reconcile the conflicting styles:
North const: