Re: Types, byte codes etc.

"Brad Baxter" <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
On 5/5/07, Oren Ben-Kiki <[email protected]> wrote:

> We also discussed the concept of byte code representation for YAML. We
> had a thread about this in Sep 2003 which went in the direction of a
> specialized line-oriented format. However, Xitology has sold us on the
> notion of using the "canonical" format as a byte code.
>
> The idea is to start with JSON, insist that every token will be on its
> own line, and throw in the minimal number of features required to
> present anything YAML supports (that is: tags, anchors and aliases,
> directives, and '...'). The result would look something like:
>
>
>     {
>     "foo"
>     }
>     ...
>     {
>     !bar
>     "baz"
>     }



Small question: In this canonical format, how do you expect to treat
newlines that are in values, e.g.,

[
"Romeo
Juliet"
]

or

[
"Romeo\nJuliet"
]

-- 
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
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.