Poll: do you use @property semantics?
IGotD-
nise at nise.com
Wed Sep 14 21:42:48 UTC 2022
On Wednesday, 14 September 2022 at 19:20:04 UTC, Rikki Cattermole
wrote:
>
> I was going to post this yesterday, but it turns out I am not
> alone in thinking this can be removed safely (can be swapped to
> a UDA to prevent code breakage without any language additions).
>
> So, who uses @property semantics?
>
> https://dlang.org/spec/function.html#property-functions
So @property is similar to C# get/set? C# get/set are useful if
you want an assignment of a member run a function for example. I
can see that such a thing can be useful in D as well. If
@property is removed can the same be achieved by other means?
More information about the Digitalmars-d
mailing list