property syntax strawman

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Aug 2 22:50:11 PDT 2009


Nick Sabalausky wrote:
> "Walter Bright" <newshound1 at digitalmars.com> wrote in message 
> news:h53g3i$elk$1 at digitalmars.com...
>>   bool empty { ... }
>>   void empty=(bool b) { ... }
>>
>> What do you think?
> 
> I think that if D starts to make a habit of aping the ugly C++ approach to 
> adding new features (as this does), then we may as well just use C++. 

Let's not forget that C++ got very conservative about adding keywords 
after a keyword spree (class that is essentially same as struct, 
namespace, xyz_cast, oh yes typename, and, or, not plus other useful 
names that I probably forgot). We don't want to get there.


Andrei



More information about the Digitalmars-d mailing list