Variable type annotation and SDK-level automatic serialization/deserialization #4
Labels
cl-design
New design, research ideas, thoughts, or paper plans.
cl-usability
User interface, storage and task visualizations, protocol marketplace, server telemetry.
enhancement
New feature or request
Migrated from: https://github.com/camelop/dds-dev/issues/15
Idea
For key-value pairs in the storage engine, allow optional type annotation so that SDK can learn the type of the variables to make smart serialization/deserialization decisions.
Potential implementation
For each key
xxx::yyy:zz
, addxxx:yyy:zz:__annotation
which contains metadata about the original key.For example, if
0xAA:some_computation:iamafloat64
is afloat64
value, SDK can read0xAA:some_computation:iamaflot64:__annotation
which returnsfloat64
, then it can automatically and dynamically do deserialization when loading the value. This might be helpful for some languages.Discussion
As a strengthened version, one can also augment this mechanism to implement schema checking for strict data format.
The text was updated successfully, but these errors were encountered: