emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Implement fast verisons of json-parse functions


From: Adam Porter
Subject: Re: [PATCH] Implement fast verisons of json-parse functions
Date: Sun, 31 Mar 2024 12:48:53 -0500
User-agent: Mozilla Thunderbird

Hi Eli,

Well, it's "kind-of" wrong argument: a string with embedded null
bytes.  But I'm also interested to hear from Mattias on this (and from
anyone else who might have an opinion about the kind of error we
should signal in this case).

Well, since you asked: I tend to agree with Géza that a string containing a null byte is less of a wrong-type-argument and more of a parsing or decoding error. I think of a wrong-type-argument as, e.g. nil instead of a string, etc. IOW, an argument that's wrong on its face, by virtue of its type, rather than any internal characteristics.

--Adam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]