Revised RFC on range design for D2

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Sep 27 07:08:32 PDT 2008


Bent Rasmussen wrote:
>> I think that property function call feature in general adds an 
>> unnecessary ambiguity to the language.  I'd prefer functions to be 
>> callable only with regular function call syntax, and properties be 
>> usable only with member access syntax.  The same stands for 'unified 
>> function call' feature: if you want to inject a method into an 'array 
>> of chars' class you do so explicitly, and only the member call syntax 
>> is allowed on that method.  Otherwise code tends to become ambiguous 
>> and unreadable.
> 
> Or abstracted and generic.

Well put!

Andrei


More information about the Digitalmars-d-announce mailing list