Optimzed vs. readable code
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu Dec 1 10:02:00 GMT 2005
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
More information about the Libstdc++
mailing list