Extended Type Design.

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Fri Mar 16 15:33:05 PDT 2007


Benji Smith wrote:
> Andrei Alexandrescu (See Website For Email) wrote:
>>> But that's just me. Not everyone will agree with my opinion, and if 
>>> I'm not in the consensus, I'll concede. But there seem to be a lot of 
>>> people who agree with me.
>>
>> I don't think so. This discussion is very small in numbers, and the 
>> strength of the interlocutors' arguments does not increase their number. 
> 
> What???? Blasphemy!!!!
> 
>>> I reiterate: "const" and "readonly" are the way to go. (Methods which 
>>> promise not to modify the values of their parameters should use 
>>> "readonly" rather than "const" in their method signatures.)
>>
>> This makes const gratuitously incompatible to C++'s const, and (worse) 
>> also adds a keyword that's its equivalent. I don't think this can fly.
> 
> Good point. I like kris's suggestion to get rid of the "const" keyword 
> entirely and replace it with something else ("constant" seems like a 
> reasonable suggestion). Here are some other synonyms for "constant":
> 
> http://thesaurus.reference.com/browse/constant
> 
> There might be something useful in there. I'm personally fond of "chronic".
> 
> :-)

Believe me, I pored over thesauri for a long, long time.

Andrei



More information about the Digitalmars-d mailing list