keyword as struct field

partypooper pythonproof at
Sun Feb 20 17:14:26 UTC 2022

On Sunday, 20 February 2022 at 17:02:21 UTC, H. S. Teoh wrote:
> The D convention is to append a `_` to the identifier. From 

But this doesn't fix the issue, because mir-ion will throw an 
exception that there is no version_ field that required and but 
json string does have "version".
I already fixed the issue with mir-ion @serdeKeys("version") 
annotation to struct field. So i'm good. But in Nim backticks are 
a _little_ bit other thing then just simple convention. Not sure 
about is's implementation, but at least for situation like that 
it would work. And it's operator overloading feature uses them 

More information about the Digitalmars-d-learn mailing list