|
From: | Alex Shinn |
Subject: | Re: [Chicken-hackers] CHICKEN in production |
Date: | Tue, 14 Oct 2014 08:31:55 +0900 |
Hi,
> > Take JSON as an example: JSON character strings can encode NULs, so if
> > CHICKEN were to reject NULs in character strings, you could not write a
> > JSON parser in CHICKEN.
>
> That's technically true, but where will you find a JSON document in the
> wild that contains "\u0000"? JSON parsers written in C won't be able to
> handle it either, since AFAIK they all return C strings. You probably
> won't be able to store it in a database either, since they use C APIs
> somewhere in the process.
If some code can't handle that, it's by definition not a JSON parser.
[Prev in Thread] | Current Thread | [Next in Thread] |