Hacker News new | ask | show | jobs
by DanielHB 1 day ago
If you modify or even just move fields around the struct that also changes the way they are serialized...

You really need a serializer for this sort of thing because it can also include forwards compatibility of your data structures.

2 comments

sure, if you change the struct, it will now be different.
It's typical to only append fields when you do this.