CONSTipation

Jason House jason.james.house at gmail.com
Fri Nov 30 10:43:26 PST 2007


Regan Heath wrote:

> The NG is really getting blocked up with const ideas at the moment... it
> seems to me we need to actually settle down and try the new system
> before making judgements and trying to 'fix' it.
> 
> I for one can't really tell yet how the changes will affect the way I
> code my D, so it surprises me that we already have so many opinions on
> how good or bad it is.
> 
> Regan

Half of my posts have a comment to the effect of "please document this
better to avoid future confusion on this topic".

Additionally, Walter has said before that people should not just say "this
sucks" and instead should put on the designers hat and tell him how to fix
it.  That, of course, then opens up all of us to criticism and you get
these long threads about how to redesign the language.  When there's no
concensus, we all accept that Walter's solution is good enough.

I've tried to adopt that methodology because I believe it leads to a natural
process that helps D mature as a language.  It may be rare that we convince
Walter (or a large fraction of the D community) that our ideas are correct,
but that doesn't mean it has no value.  

I honestly think that the reception to this latest const has been much
warmer than the last time.  IIRC, there's only been two issues raised.  One
was how ambiguity over how const functions are specified, and the other (by
me) was ambiguity over const and invariant storage classes relative to
const and invariant types.

I really do try to read every other post on the NG prior to making my own
posts, and when I post I try to think about what I'm saying so I don't just
spew out my random thoughts at the time.  It took me a very long time to
draft my "invariant doesn't apply to declared symbols" post.  The content
changed many times.  I honestly consider it a point of confusion...  where
people could use stuff thinking one thing and then be surprised to realize
it means something else.



More information about the Digitalmars-d mailing list