What is the state of @property?
cc
cc at nevernet.com
Fri Sep 2 18:18:21 UTC 2022
I use @property, with the full knowledge that it does mostly
nothing, for self-documentation purposes, in places where I'd use
similar semantics in other languages. Seeing that I tagged
something with @property lets me infer certain things about the
nature of the inner values being held by the object, the
interface to the outside world, and how the result is likely to
be used once it's retrieved. Adding @property to a function
looks warm and comfortable, like hanging a little holiday wreath
on its door. I enjoy using it and I'm not going to stop.
I use @property more than @safe.
More information about the Digitalmars-d
mailing list