Achilleas Margaritis <axil...@gmail.com> writes:

> How much do you spend in maintaining headers? answers welcomed from
> other members as well.

In C++, I personally spend very little time doing what I would describe
as "maintaining headers."  I write class definitions in .h files and
function implementations in .cc files.  The only data which appears in
both places is the function signature.  Yes, it would be slightly nice
if I didn't have to write that twice.  But it's a minor issue.

Of course these days I mostly work on Go, which doesn't have this issue
at all, because the language implements something along the lines of the
C++ modules proposal.  Which I think is the right way to go.  Don't get
confused by the language standardization process here; your proposal is
also a change to the language.  The pace of the standardization process
is independent of whether gcc should implement a language change.  The
important point is that in order to implement what you want, the
question is not whether to change the language, it is how to change it.
And how it should be changed is the way that works best for most people,
which need not be the way that most nearly replicates the way the
language currently works.

Ian

Reply via email to