@property needed or not needed?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Nov 19 21:53:55 PST 2012


On 11/20/12 12:24 AM, deadalnix wrote:
> Le 19/11/2012 06:58, Andrei Alexandrescu a écrit :
>> On 11/19/12 4:01 AM, monarch_dodra wrote:
>>> I kind of agree with Jonathan here. @property really shines when you
>>> want to "add" an attribute to a struct.
>>
>> I kind of agree with him, too, but it would be a mistake to not reckon a
>> change in dynamics. UFCS makes all those extra parens just awkward, and
>> people will vote with their code regardless whether some particular
>> viewpoint from some particular angle considers the approach backwards.
>>
>> Andrei
>
> As aid bunch of time, I'm pretty sure we can have a clean semantic and
> still allow mosts use of parenthsesless call using opDispatch .

Could you please give more detail? On first sight this seems to 
complicate the majority case for the benefit of a few.

Andrei


More information about the Digitalmars-d mailing list