theseion / Fuel

Fuel, the Smalltalk object serializer
https://theseion.github.io/Fuel
MIT License
27 stars 13 forks source link

Expose file format changes in version number #207

Closed GoogleCodeExporter closed 2 years ago

GoogleCodeExporter commented 9 years ago
Henrik Johansen's proposal for the problem that nobody know which Fuel version 
will work with which format:

A versioning scheme that encodes much of the needed information directly is  
great for this.

An example:

X.Y.Z-[Dialect/Version]
X - Major version changes, can not be expected to read streams of previous 
versions correctly (changed storage format for something)
Y - Minor version changes, can be expected to read older versions, but not 
newer, correctly (added new capabilities to the format, such as new hooks etc.)
Z - Internal changes/bugfixes, (no changes to the actual serialization format)
[Dialect/Version] - Not needed for error recovery if classes of serialized 
instances are included, as that is better to use directly if encountering 
missing/incompatible definitions, but a nice bit of info to start from 
otherwise...

Original issue reported on code.google.com by maxle...@gmail.com on 2 Mar 2014 at 10:50

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.

theseion commented 2 years ago

This has been addressed. Only major version differences will signal a warning as of version 4.