4 ms·
It seems like an odd choice to make the type "metadata" a prefix to the value, rather than a separate field. It feels like overloading. What's the advantage?
by hirundo 5y ago
It seems like an odd choice to make the type "metadata" a prefix to the value, rather than a separate field. It feels like overloading. What's the advantage?
- re 5y agoNot sure I understand exactly what "a separate field" would look like, but: 1. Considering that a goal of Ion is to be a strict superset of JSON, separate syntax ensures that any JSON value can be parsed without misinterpreting some field as an annotation--there are no reserved/"magic" field names. 2. Annotations can be applied to any type of value, not just objects, which are the only type that have fields.
- deleted 5y ago[deleted]
- indymike 5y agoIt tells you how to load the value and can be human readable for audit purposes. example: degrees::'celsius'::100