@property needed or not needed?

Rob T rob at ucora.com
Wed Dec 5 12:27:17 PST 2012


On Wednesday, 5 December 2012 at 18:32:16 UTC, deadalnix wrote:
>>
>> I think the argument for vs against is simply a coding style
>> issue, some like dropping empty braces, some do not.
>>
>> --rt
>
> It is also a ambiguity issue

The () acts like a naming convention, and with or without 
enforcement you are free to choose whatever naming convention you 
desire, thus reducing ambiguity.

> and the extra need of & to not call the function (which also 
> introduce ambiguity).

If you dislike it, rather than use &, I suppose you can add on 
the () instead. In fact you can specify () everywhere if you 
prefer.

--rt


More information about the Digitalmars-d mailing list