Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by DanielHB

8 hours 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

DanielHB

Reply

edflsafoiewq  3 hours ago

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

jstimpfle  8 hours ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities