Fixing D's Properties

Bill Baxter dnewsgroup at billbaxter.com
Fri Aug 17 13:16:02 PDT 2007


Deewiant wrote:
> Chad J wrote:
>> Properties are a blemish of the D language.  In the first part of this
>> post, I'll explain why and try to show how these properties are /not/
>> good or even better than properties in other languages.  Then I'll
>> suggest some possible solutions.  I don't care if the solutions I
>> suggest are used, but I will be very thankful if this gets fixed somehow.
>>
> 
> Great that you took the time to go through it properly.
> 
> I agree that all the issues you mentioned need to be fixed somehow.

Ditto.

> C# uses the "property" keyword IIRC, and even though adding new keywords is a
> big no-no I find this worth considering. Who uses "property" as an identifier
> name anyway?

Well, 'property' may be in use by people writing property-editor widgets 
like in IDEs.  But still, I'd go for a new 'property' keyword.  Will 
probably clash with far fewer existing uses that 'ref' did.

--bb



More information about the Digitalmars-d mailing list