[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: const-ness

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-12-16 07:02:08 CET

On Fri, Dec 15, 2000 at 11:32:33AM -0600, Karl Fogel wrote:
> Greg, re the const stuff: it sounds like you're advocating a certain
> coding policy, but not succeeding in convincing a majority of the
> other developers that it's a good policy :-).

Heh :-)

It isn't my job to "convince" anybody. It would be a bit presumptuous of me
to think I knew better than somebody else. Also, the primary design and
development of the code bits fall to different people, and they get to make
the ultimate design choices and decisions.

I try to avoid the "convincing" and (instead) just take my job as "review
the code and flag/describe problems as I see them; to provide alternate
code/designs that I think are better."

That's the theory, at least. It's a fine line, but when it gets down to
brass tacks, the FS follows Jim's design. I can say there are problems, but
can also respect it when Jim puts his foot down :-) Of course, I hope to
receive the same treatment: tell me about problems in my code, and we can
work through it; at some point, if it is six of one, half dozen of another
for the two approaches, then I'd hope to get the deciding vote :-). If there
is a problem in my design/code, then I hope people can explain it to me so
we can create a better system.

> Since coding policies only exist to help humans (the code can get
> along quite fine without them), if the humans don't find a particular
> policy helpful, then there isn't much reason for them to adopt it.
> JimB is uncomfortable with reading more into a `const' than the
> qualifier technically promises. In the sections of code where he
> spends most of his time, it doesn't make sense for him be doing things
> that make him uncomfortable -- that'll just get in his way.


> My feeling is, you use const the way you like in the code you're
> writing, JimB will use it how he likes in the code he's writing, etc,
> and Subversion will simply not have a project-wide policy on const
> usage.

Certainly. While I might get a bit "loud" at times :-), I will always defer
to his choices for the FS.

I sense a bit of worry, Karl :-). No need... I know how to share a sandbox
with the other boys :-)


Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:17 2006

This is an archived mail posted to the Subversion Dev mailing list.