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

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Jan 24 12:13:31 PST 2013


On 1/24/13 2:14 PM, Jonathan M Davis wrote:
> On Thursday, January 24, 2013 18:54:00 David Nadlinger wrote:
>> On Thursday, 24 January 2013 at 17:51:32 UTC, Andrei Alexandrescu
>>
>> wrote:
>>> No. The complications come from the fact that (a) nobody could
>>> agree what should be a @property and what shouldn't; (b)
>>> @property adds noise for everybody for the sake of a corner
>>> case (functions returning delegates); (c) the @property
>>> discipline failed to align itself in any way with better code
>>> quality.
>>
>> The simple(r) explanation is: The current *implementation* is
>> broken.
>
> Exactly. Most of the problems with @property stem from the fact that it's not
> implemented properly, particularly with regards to the -property flag.

That is because it's not well defined.

Andrei




More information about the Digitalmars-d mailing list