Re: Possible bug with null document in libyaml

Kirill Simonov <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Hi Osamu,

> 
> According to the spec, this change was done for JSON compatibility.
> A YAML 1.2 processor seems to be required to construct a null object 
> from an empty node.
> 
> In this point, YAML 1.2 is completely incompatible from YAML 1.1.
> Please compare example 7.3 in YAML 1.2 spec with example 8.13 in 
> YAML 1.1 spec.
> 

I don't think it's the correct interpretation of the spec.  I'd say that 
YAML 1.2 provide a recommended scheme for tag resolution, while YAML 1.1 
doesn't, leaving the decision of choosing the default scheme to the 
processor authors.  I believe all existing YAML producers interpret an 
empty plain scalar as a null value unless instructed otherwise.

Thanks,
Kirill

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
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.