@property needed or not needed?

deadalnix deadalnix at gmail.com
Mon Nov 19 21:24:59 PST 2012


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 .


More information about the Digitalmars-d mailing list