[Freeciv-Dev] Re: AI cleanup Version 3
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Petr Baudis <pasky@xxxxxxxxxxx> wrote:
> >
> > Because is was quite hard to decipher the AI code. I just don't want
> > to loose the knowledge the people have gained in the last month
> again.
> Well, if there is a doubt about the mean of the variable, there should
> be a
> comment near its declaration. The variable name should just represent
> its
> content, not explain it, IMHO.
I agree with Raimar here.
The comment you have to search for, the name is always there.
Although I would have gone for "turns_to_dest"
G.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
|
|