YAML 2.0: drop directives
Andrey Somov <[email protected]> Wed, 2 Mar 2016 09:46:11 +0100
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CALbkv0feMPwkYTfvbYBa26bOQCn47cbQKUy6hi0o=7ZrLUvheg@mail.gmail.com> |
Hi all, I propose to eliminate directives. They do not give any value. 1) YAML directive serves 2 purposes - visually divide YAML documents in a stream. This is useful. - specify the YAML version. This is useless. The parser (according to the specification) ignores this value and parses YAML according to its own rules (which is logical) If the YAML directive is dropped users may easily compensate the visual division with a comment. 2) TAG directive is far too complex and confusing. It is never used. Changing the meaning of tags can be provided to the parser itself. Of course it will be applied to all the documents in the stream. The assumption that TAG directives may be different in the stream is wrong. Users always expect the same interpretation of !foobar in the same stream. If YAML 2.0 drops both directives we win simplicity and readability. Cheers, Andrey ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Yaml-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/yaml-core