Are properties actually all that good?

Land Land at email.com
Mon Jul 22 08:07:29 PDT 2013


I was just thinking about properties and to be honest, I don't
like them all that much. There's no way to tell if it's a
read-only or write-only property (right?), but getValue and
setValue are pretty self-explanatory.

Also, someone was angry about .keys making a copy. I agree with
that person and think that instead of a property, there should be
a method called copyKeys or getKeysCopy to make it obvious.

Or does anyone have different view on the matter? I'd be happy to
hear it.


More information about the Digitalmars-d-learn mailing list