Constness Naming Proposal

Paul Anderson paul.d.anderson at comcast.net
Sat Aug 25 21:05:57 PDT 2007


Daniel Keep Wrote:

> 
> The problem is that they all mean (roughly) the same thing.
> 
> I mean, *why* is 'resolute' head const whilst 'intransigent' tail const?
> 
> I think the current words being used are fine since, let's face it, I
> don't think there *are* English words for "head is read-only" and "tail
> is read-only".  In the end, we'll have to pick a set of words
> arbitrarily and *assign* them that meaning.
> 
> const(head) and const(tail) wouldn't go down too well since, as Chad
> noted, they're too long and a pain to type.
> 
> 	-- Daniel

I wasn't seriously suggesting them -- but that is the heart of the problem. When Walter and Andre first presented the head-const/tail-const slides they were using 'final' for one and 'const' for the other. I can't remember which was which, but that, again, is the problem.

Paul




More information about the Digitalmars-d mailing list