thaddeusdiamond/Social-Hierarchical-Learning — comment on commit f0b1e347286205d7ff6f909e7d230f67cc8cd58e
File: src/Primitives/Learner/QLearner.h line 49
By hayesbh:

They are the same, I just find it easier to read right-to-left with const following the var declaration. I usually did it your way until someone convinced me to put it afterwards.

const int * const asdf;
vs.
int const * const asdf;

The end result is it doesn't really matter, but I find it easier to read "asdf is a const pointer to a const int" in the second statement.

--Brad

On Nov 21, 2011, at 8:00 PM, Thaddeus Diamond wrote:

> Any advantage to doing it your way over my way? Semantically I believe they are the same I just wasn't sure.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/thaddeusdiamond/Social-Hierarchical-Learning/commit/f0b1e347286205d7ff6f909e7d230f67cc8cd58e#commitcomment-736477