Re: 1.2 Specification Wording

"BlueGM" <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <3E60C036F40748DBA328A7A19EB94DEF@HWSBRegula>
Oren,


Thank you for your quick response. I've gone over the version from the link
you gave me and it does indeed fix this. I also see that several parts that
I found confusing in the older version have been revised and are much
clearer now. I haven't looked through all of the production rules in the
newer version. I'm looking forward to doing so tomorrow (err... today...
after I've slept =p); I'm getting close in my project now to where I'll have
to make sure I completely understand them. The schemas are a nice addition
to the 1.2 specification.


Thank you again,

Blue G.


P.S. Sorry, Oren. I hit reply instead of forwarding the message, so you've
been copied twice.
 

-----Original Message-----
From: Oren Ben-Kiki [mailto:[email protected]]
Sent: Monday, April 20, 2009 10:41 PM
To: BlueGM
Subject: Re: [Yaml-core] 1.2 Specification Wording

You can access the latest version we are fixing the issues in
http://yaml.github.com/yaml-spec/ (Actually we have some git issues so it
isn't 100% absolutely latest but it does contain a lot of tiny fizes
already).
At any rate, as for 10.2., this contains the phrasing:

Scalars with the "?" non-specific tag (that is, plain scalars) are matched
with a list of regular expressions (first match wins, e.g. 0 is resolved as
!!int). In principle, JSON files should not contain any scalars ***that do
not match at least one of these***. Hence the YAML processor should consider
them to be an error.

A small correction, but a vital one :-)

On Mon, 2009-04-20 at 12:07 -0400, BlueGM wrote:
> To the authors of the 1.2 specification:
> 
> I've gone over the specification numerous times lately, and there is a 
> part of section 10.2.2 that confuses me.
> 
> Section 10.2.2 Resolution (of the JSON Schema) has the following 
> lines, "Scalars with the "?" non-specific tag (that is, plain scalars) 
> are matched with a set of regular expressions. In principle, JSON 
> files should not contain any such scalars. Hence the YAML processor 
> should consider them to be an error."
> 
> Given that JSON has a number of "plain scalars" (unquoted values) to 
> support booleans, integers, and floats,...



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
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.