Re: JSYNC

William Spitzak <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>

Brad Baxter wrote:
> I, for one, would welcome this.
> 
> Forgive me for spotting trivia, but the lines
> below don't seem to match.  Is that just a typo,
> or is there something significant I'm missing.
> 
> "notes": ".!!! Awesome !!!",
> "notes": ".... add note here ...",
> 
> notes: '!!! Awesome !!!'
> notes: ... add note here ...

He is using a leading dot to quote the next character. Otherwise it 
would be impossible to make a tag that starts with '!' or '&'.

I'm not sure this is the best choice, as numbers can start with a dot. 
This is not in official JSON syntax, however, because they must start 
with a zero and are never quoted while strings always are, but there are 
plenty of semi-JSON syntaxes that do not follow these rules and this 
would be a serious incompatibility with them.

I think another punctuation mark should be used. '!' can't work as YAML 
tags can start with '!!'. But I think '&' works because a YAML address 
cannot start with '&&', right?

Other change I would make is unify the syntax between lists and maps. 
Instead of "!":"record" in the map, I would use "!record":null. If there 
is both a tag and address I would use "!record":"&address".

>     Greetings from Taiwan,
> 
>     I just wrote this up: http://www.jsync.org/
> 
>     I'm interested to know what y'all think.
> 
>     Cheers, Ingy

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