www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: equivariant functions

reply ore-sama <spam here.lot> writes:
Andrei Alexandrescu Wrote:

 In programming languages growing the vocabulary indiscriminately is 
 worse because it chews into the vocabulary available to user-defined 
 symbols.

What chews now is library's vocabulary: class Director{...} class Department { Director Director() //compiler: ^3^ chuuu~ { return director; } } while in C# this feature is used widely.
Oct 14 2008
parent KennyTM~ <kennytm gmail.com> writes:
ore-sama wrote:
 Andrei Alexandrescu Wrote:
 
 In programming languages growing the vocabulary indiscriminately is 
 worse because it chews into the vocabulary available to user-defined 
 symbols.

What chews now is library's vocabulary: class Director{...} class Department { Director Director() //compiler: ^3^ chuuu~ { return director; } } while in C# this feature is used widely.

that's why namespaces are introduced.
Oct 14 2008