What's the story with @property again?

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Sun Nov 10 11:26:04 UTC 2024


On Saturday, 9 November 2024 at 11:58:34 UTC, Jonathan M Davis 
wrote:
>
> Honestly, UFCS kind of killed most of what was planned for 
> @property, and no new plan has ever been decided upon, so it's 
> just sat there, and since it isn't really causing issues, it 
> hasn't been a priority to figure out what to do about it. There 
> aren't a lot of people working on the language, and other stuff 
> has mattered a lot more. In all likelihood, @property will just 
> stick around as it is until someone takes the time to write a 
> DIP to do something interesting with it (and it's good enough 
> to be accepted).
>
> - Jonathan M Davis

It would be nice to have it as simple annotation at least that 
denotes a method acts like a property. It would be useful for 
serialization libs in detection of what methods are actually 
properties that can be serialized/deserialized.


More information about the Digitalmars-d mailing list