Breaking change between YAML 1.1 and 1.2 with multiple documents

Antoine Aubry <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <CAGt1h15rsSvFcn592oe-vBn5nhp1cvZ5VmRwMZVhJPdqmNusJA@mail.gmail.com>
According to the YAML 1.1 spec <http://yaml.org/spec/1.1/#l-first-document>,

If the document specifies no directives, it is parsed using the same
> settings as the previous document.
>

However, the YAML 1.2 spec <http://yaml.org/spec/1.2/spec.html#id2800132>
states that

9.1. Documents <http://yaml.org/spec/1.2/spec.html#id2800132>
> A YAML character stream may contain several documents. Each document is
> completely independent from the rest.
>

and makes no mention of inheriting directives from the previous document.
This change might cause subtle bugs when using a 1.2 processor on a stream
that was designed assuming version 1.1. Am I correctly interpreting the
specs?

In the initial paragraphs of version 1.2, it is said that

The primary objective of this revision is to bring YAML into compliance
> with JSON as an official subset. YAML 1.2 is compatible with 1.1 for most
> practical applications - this is a minor revision.
>

This makes me wonder if this change was intentional, or if was an overlook.
Can someone clarify?

Thanks,

      Antoine Aubry

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.