Re: JSON & plain scalers

"Oren Ben-Kiki" <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
On Wed, May 21, 2008 at 5:40 PM, Burt Harris <[email protected]> wrote:
> Section 10.2.2 says:
>
>>  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.
>
> That seems incorrectly worded. Perhaps the intent is to describe a "JSON only"
> mode for a YAML processor, but even then, plain scalars are allowed, though only
> ones matching the regular expressions.   Useful as such a processor feature might
> be, does such a mode belong in the YAML spec?

Ouch. I meant such scalars that aren't matched by any of the
JSON-schema types regular expressions, of course!

Nice catch,

    Oren Ben-Kiki

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.