Poll: do you use @property semantics?

Dom DiSc dominikus at scherkl.de
Thu Sep 29 11:53:56 UTC 2022


On Thursday, 29 September 2022 at 08:40:11 UTC, Quirin Schroll 
wrote:
> On Wednesday, 28 September 2022 at 18:47:24 UTC, Sönke Ludwig 
> wrote:
>> I'm using @property a lot of places, in the hope that one day 
>> it would receive a full set of useful semantics – and also as 
>> a way to add a distinction between "verb" functions and simple 
>> getters/setters. There are also definitely some places where 
>> the current semantics are in effect.
>
> With other words, you’re setting yourself up to have your code 
> broken.

Well, sort of. But in hope to get something more useful as it is 
now.

But what a suggestive question! You either don't use @properties 
so the feature is useless and can be thrown away, or you use them 
and then be blamed to shoot yourself into your foot.


More information about the Digitalmars-d mailing list