logoalt Hacker News

DanielHBtoday at 2:40 PM2 repliesview on HN

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.


Replies

edflsafoiewqtoday at 7:17 PM

It's typical to only append fields when you do this.

jstimpfletoday at 2:45 PM

sure, if you change the struct, it will now be different.