Lars Gullik Bjønnes wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
| Andre Poenitz wrote:
| > On Wed, Jun 21, 2006 at 10:24:31AM +0000, Angus Leeming wrote:
| >> I think it's just because we decided it improves readability. These things
| >> should be read from right to left:
| >> QRect const &
| >> A reference to a const QRect
| >>
| >> char const * const
| >> A const pointer to a const char.
| > Well, in almost all cases we have just a single 'const'. I find
| > const QRect rc = ...;
| > const int i = 3;
| > const bool b = true;
| > or even
| > const QRect rc = ...;
| > const int i = 3;
| > const bool b = true;
| > more pleasant to read than
| > QRect const rc = ...;
| > int const i = 3;
| > bool const b = true;
| > However, placing 'const' at the right is (apart from formatting)
| > about
| > the only thing which is done consistently within LyX, so 'it is good as
| > it is'.
|
| But most C++ projects including boost, stl and Qt place the const at
| the left.
Ahh... but they are mis-guided.
It might feel great to be in your shoes man!
| I always have to force myself to put it to the right.
When you get used to it, it feels a lot more natural.
That is, up until the moment you have to get back to use the much more
wide spread style...
Abdel.