Struct inheritance
Derek Fawcus
dfawcus+dlang at employees.org
Thu Dec 5 19:12:50 UTC 2024
On Wednesday, 4 December 2024 at 21:49:02 UTC, Richard (Rikki)
Andrew Cattermole wrote:
>
> You need this for things like serialization.
I'm not seeing that...
> Since we don't have runtime reflection it has to be done at CT,
> and if you have to do anything to offer it as a user, its just
> a NOPE compared to other languages.
Given that Go and Java use a form of UDA for assisting in
serialisation, I don't see that the equivalent for D would be
unacceptable.
One either writes complex schemes for per structure callbacks, or
one uses simple annotation with UDA. I know which I prefer,
since it involves writing less code.
More information about the dip.ideas
mailing list