Re: JSYNC

William Spitzak <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Ingy dot Net wrote:

>     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.
> 
> 
> Can you elucidate with an example? I don't follow the logic.

libyaml does not provide any obvious api to determine if a scalar was 
quoted. Using it to read these files and decide if leading periods 
should be stripped would require you to peek into the "events" to 
determine if they were quoted, making it impossible to use the higher 
level structured api. Also I suspect it was not intended that you be 
able to look at the quoting of events and this is a side effect of using 
the same structure for output as input.

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