Re: Use const proactively

2007-06-02 Thread Klaas-Jan Stol
On 6/2/07, Andy Lester <[EMAIL PROTECTED]> wrote: From my wiki at http://xoa.petdance.com/Use_const_proactively Const your local variables The following is adapted from C++ Coding Standards by Herb Sutter and Andrei Alexandrescu (with some C++-specific stuff removed): const is your fri

Use const proactively

2007-06-01 Thread Andy Lester
Here's a bit of an explanation of why I const like I do: http://xoa.petdance.com/Use_const_proactively One of my jobs in Perl 5 and Parrot has been to apply const as much as humanly possible. == Const your local variables The following is adapted from C++ Coding Standards by Herb Sutter and

Use const proactively

2007-06-01 Thread Andy Lester
Here's a bit of an explanation of why I const like I do: http://xoa.petdance.com/Use_const_proactively One of my jobs in Perl 5 and Parrot has been to apply const as much as humanly possible. == Const your local variables The following is adapted from C++ Coding Standards by Herb Sutter and

Use const proactively

2007-06-01 Thread Andy Lester
From my wiki at http://xoa.petdance.com/Use_const_proactively Const your local variables The following is adapted from C++ Coding Standards by Herb Sutter and Andrei Alexandrescu (with some C++-specific stuff removed): const is your friend: Immutable values are easier to understand, t