The idea is that Bin-prot is stable as long as you use the same types.
So, to have stabie types over time when the underlying codebase
changes, you need some discipline around that.
Look at the data and time hanlding code for examples. We have
explicit versions, and unit tests to make sure that changes don't
break serialization and deserialization for either s-expression or
bin-io. You'll see very few cases of "V2" types, since we rarely
change the physical representation of a value in Core. But we want
the freedom to do so, so you should use Stable types wherever possible
for stable protocol or storage of OCaml values.
y
> --
> You received this message because you are subscribed to the Google Groups
> "ocaml-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ocaml-core+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.