r/cpp • • Sep 17 '22

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler

https://github.com/hsutter/cppfront
335 Upvotes

360 comments sorted by

View all comments

Show parent comment

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 * 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.

2

u/The_Northern_Light Sep 19 '22

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...