auto storage class - infer or RAII?

Roberto Mariottini rmariottini at mail.com
Mon Nov 13 00:45:54 PST 2006


Walter Bright wrote:
> My problem with "var" is the history of the keyword. Back in the olden 
> days, there were two main camps of programmers - the Pascal people, and 
> the C people. Each camp looked with disdain upon the other as "not 
> getting it". The Pascal crowd progressed to Modula 2, Object Pascal, and 
> eventually Delphi. The C family progressed to C++, Java, and D. There 
> didn't seem to be much voluntary mixing up, people would switch camps 
> only under duress.
> 
> So I have a real (possibly outdated) concern that "var" appearing in D 
> will make the language distasteful to the C crowd. The appearance of a 
> language matters a lot, it's like the clothes one wears that identifies 
> one (consciously or not) as being with a particular group.
> 
> And that's why I've avoided using "var".

You are right, your concern is outdated.

Take "var" from ECMAScript, so you don't need to get dirty with Pascal 
(we won't tell anyone).

And, maybe, with "var" you can attract some old Pascal programmer.

Ciao
---
http://www.mariottini.net/roberto/



More information about the Digitalmars-d mailing list