2 ms·
In C++ this is called East Const vs West Const with, as someone explains below, East Const (const on the right) being the only one that actually does something
by tialaramex 5y ago
In C++ this is called East Const vs West Const with, as someone explains below, East Const (const on the right) being the only one that actually does something consistent and explicable.
- Twisol 5y agoThanks for the nomenclature! That definitely helps find more discussion around the two preferences, like [0]. (FWIW, I'm aware of the semantic differences; I've just never come across that much material referencing it, much less acknowledging the schism.) [0] https://hackingcpp.com/cpp/design/east_vs_west_const.html https://hackingcpp.com/cpp/design/east_vs_west_const.html