This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Optimzed vs. readable code


Jonathan Wakely <jwakely.gcc@gmail.com> writes:

| On 11/30/05, caj@cs.york.ac.uk <caj@cs.york.ac.uk> wrote:
| > that you may as well just add a comment saying "We use the first iterator
| > to keep the current position".
| 
| Now that's a good idea.

I think comments should say why we're doing what we're doing, not repeat
what I'm reading.  

My advice is get used to it, just as you'd get used to

   if (Call* call = dynamic_cast<Call*>(expr))
      ...


-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]