Extended Type Design.

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Fri Mar 16 11:44:01 PDT 2007


Bruno Medeiros wrote:
> Andrei Alexandrescu (See Website For Email) wrote:
>> Derek Parnell wrote:
>>> Yes! "const!" is bad form. Really bad. Horrible in fact. Just make it 
>>> a new
>>> keyword please, without using non-alpha characters. Such as "readonly",
>>> "immutable", "keepyourgrubbyhandsoff", ... anything but using "!".
>>
>> You can use "super const". We should be really really careful about 
>> adding new keywords; D already has tons, and I have a feeling we don't 
>> want it to become Cobol or dBase.
>>
>> If there are ways to stay away from new keywords, we'll do so. I do 
>> realize that no matter the syntax, there will be people who won't like 
>> it. But avoiding adding keywords liberally is an overriding desideratum.
>>
>>
>> Andrei
> 
> So instead of making D like Cobol we make it like APL ? :/
> I don't think the problem of Cobol was *having* too many keywords, but 
> rather forcing you to *use* lots of keywords for the simplest things. 
> (Disclaimer: I don't actually know Cobol, I'm imagining it to be like 
> Pascal, but worse)

No. Ada is like Pascal, but worse :oO.

Cobol has 420 keywords.

> So we should have that in consideration when talking about D. In fact, I 
> think that any general idea of "adding more keywords is bad" is somewhat 
> pernicious: every case should be examined in itself. In some cases it 
> could be worth it, in others not.

I agree.


Andrei



More information about the Digitalmars-d mailing list