Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Thanks 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: