You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a personal preference but I will go ahead and complain about it anyway :-P
Consider this: a * b - at first glance you are not sure if it's a multiplied by b or a pointer to a stored in b. a & b - bitwise and or ref? const a & b
IMO stick to industry standards, nobody cares if it's a *b or a* b but a * b is super rare and weird... I personally prefer a* b but as long as it's not in the middle I am fine and can read it quickly.
The text was updated successfully, but these errors were encountered:
As you have mentioned, there are reasons why left-align as well as reasons for right-aligning. My view is that every reason why to right-align is a reason why not to left-align, and vice versa. Having the operator in the middle doesn't shouldn't mislead anyone, unlike e.g. int* i, j;. I think that it is a matter of taste, so try give it a go.
There is a astyle runner resources/utilities/run-astyle.sh, so switching from one way to the other should be rather easy, and if it will keep causing you pain for a long time, feel free to submit a PR that changes that.
It's a personal preference but I will go ahead and complain about it anyway :-P
Consider this:
a * b
- at first glance you are not sure if it's a multiplied by b or a pointer to a stored in b.a & b
- bitwise and or ref?const a & b
IMO stick to industry standards, nobody cares if it's
a *b
ora* b
buta * b
is super rare and weird... I personally prefera* b
but as long as it's not in the middle I am fine and can read it quickly.The text was updated successfully, but these errors were encountered: