@property - take it behind the woodshed and shoot it?

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Thu Jan 24 17:43:02 PST 2013


On Thu, 24 Jan 2013 21:06:02 +0100
"mist" <none at none.none> wrote:
> 
> Not really. Good property usage is somewhat similar to unsafe 
> cast usage - you say to others "Yes, I know what I am doing, 
> please do not pay attention that this data is in fact function". 
> The very point of properties is to be used almost 
> indistinguishable from data and if this usage pattern fails - 
> property author has lied and this is not really a property.
> 

+1

> And because of issues like "+=" it is rather difficult (if 
> possible) to define good properties in D now.

+1



More information about the Digitalmars-d mailing list