Are properties actually all that good?
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Mon Jul 22 11:08:14 PDT 2013
On Monday, 22 July 2013 at 17:27:02 UTC, Dicebot wrote:
> On Monday, 22 July 2013 at 17:15:53 UTC, Jesse Phillips wrote:
>> Use properties. You'll find it more common in other D code.
>> Whether you use a field or a method is up to you, I suspect
>> using method will be more common.
>
> As multiple property threads have shown this is a _very_
> varying preference among D coders. It it is mostly true for
> Phobos but out of it - no common guideline.
I disagree, those discussions were about @property, they had very
little to do with accessor methods (getX setY). Most of the
discussion was on how to add properties into the language where
disagreement was around if optional parens were solving the
problem.
More information about the Digitalmars-d-learn
mailing list