My argument for west const is: I forget which direction const applies to. So I write stuff like const auto * const to just avoid having const in the middle and having to think about it. But I admit it's not a good argument, it's just the least error prone way to write it for me.
And because of that when I don't have pointers or references I stick with const auto so I can do const auto * etc.
Perhaps the reason you keep forgetting which direction it applies to is because you use the style that causes it to be inconsistent in the first place...
1
u/hayt88 Sep 18 '22
My argument for west const is: I forget which direction const applies to. So I write stuff like
const auto * constto just avoid having const in the middle and having to think about it. But I admit it's not a good argument, it's just the least error prone way to write it for me.And because of that when I don't have pointers or references I stick with
const autoso I can doconst auto *etc.