The problem with const proposals
Paul Anderson
paul.d.anderson.removethis at comcast.andthis.net
Fri Dec 7 10:30:51 PST 2007
Janice Caron Wrote:
> On 12/7/07, guslay <guslay at gmail.com> wrote:
> > Here is my list so far
>
> But what is it a list /of/?
>
> I ask because item 6a violates const-transitivity, and
> const-transitivity is itself deemed to be a requirement of the D
> programming language. Are we compiling a list of conflicting
> requirement here?
>
> My list would be much shorter. It would be that const should be:
> (1) simple to understand
> (2) transitive
> (3) compatible with generic programming
>
> ...and that's kind of it, really.
<why can't we all just get along?>
I think that guslay's list distills a lot of the discussion here, at least about what people want.
I agree that it is a good idea to have such a list to guide our discussion.
I agree with Janice that such a list needs to be defined and scrubbed for consistency.
Maybe we could have a compiler switch that turns const features and const keywords on and off?
</why can't we all just get along?>
Paul
More information about the Digitalmars-d
mailing list