Poll: do you use @property semantics?

Timon Gehr timon.gehr at gmx.ch
Tue Sep 27 00:05:35 UTC 2022


On 26.09.22 20:50, Dom DiSc wrote:
> On Wednesday, 14 September 2022 at 19:20:04 UTC, Rikki Cattermole wrote:
>> Recently Walter has been wanting to remove language features that 
>> don't need to be kept to simplify the language.
>>
>> So, who uses @property semantics?
>>
>> https://dlang.org/spec/function.html#property-functions
> 
> I do - or I would if only they would work - e.g. if x is a property 
> (having a getter and a setter), ++x should work, &x should be an error 
> etc. If it has only a getter or a setter, ++x should not work, but 
> provide a meaningful error message instead of the garbage we get now.
> It would be easy to fix this. Makes me really sad.

Also see: https://wiki.dlang.org/DIP24


More information about the Digitalmars-d mailing list