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

Andre'

Reply via email to