Extended Type Design.

Bruno Medeiros brunodomedeiros+spam at com.gmail
Fri Mar 16 10:36:36 PDT 2007


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)
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.

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list