From: "João Távora" <joaotavora@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [PATCH] Support custom 'null' and 'false' objects when parsing JSON
Date: Sat, 09 Jun 2018 15:49:54 +0100 [thread overview]
Message-ID: <87wov8dnfx.fsf@gmail.com> (raw)
In-Reply-To: <838t7otlt6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Jun 2018 11:18:29 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> Some comments on the documentation parts:
Thanks!
>> +The value decides which Lisp object use to represent the JSON keyword
> "to use"
Done.
>
>> +@code{null}. It defaults to the lisp symbol @code{:null}.
>> +The value decides which Lisp object use to represent the JSON keyword
> Likewise.
Duh-ne
> Btw, I think @table..@end table will produce a better-looking output
> here.
OK.
>> +Lisp string. The arguments @var{args} are a list of keyword/argument
> ^^^^^^^^^^
> "is a list"
Note "The arguments". I was struggling with how to phrase this so I
copied from process.texi:617
The arguments @var{args} are a list of keyword/argument pairs.
I suppose you prefer "the argument @var{args} is a list", so I changed
it accordingly.
>> +@item @code{:object-type}
>
> Doesn't this duplicate the same list above?
Not quite. json-parse-string accepts one more argument, object-type,
which json-serialize doesn't. So while I could refactor the common
part, I think it's not quite worth it yet.
>If so, it would be best to have only one copy of that. (And you have
>the same issues as above with omitting "to" in "to use".)
Argh. ETOOMANYTOOS
> IOW, use a semi-colon between alternatives, which will then allow you
> to use commas freely when describing each alternative.
OK. Good alternative.
>> +can recursively contain the lisp equivalents to the JSON null and
> "Lisp"
>> +The lisp equivalents to the JSON null and false values are
> Likewise.
OK.
>> +Note that ambiguity can arise if you specify the same value for
>> +`:null-object' and `:false-object', and so this function's behaviour
>> +is unspecified
> Missing period at end of sentence.
I changed the sentence altogether (and added the period). I think we can
safely specify that output will not contain any JSON false.
Thanks again for reviewing.
Pushed a new version to scratch/allow-custom-null-and-false-objects-in-jsonc
João
next prev parent reply other threads:[~2018-06-09 14:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-07 18:29 [PATCH] Support custom 'null' and 'false' objects when parsing JSON João Távora
2018-06-07 19:13 ` Stefan Monnier
2018-06-07 23:08 ` João Távora
2018-06-08 1:45 ` João Távora
2018-06-09 8:18 ` Eli Zaretskii
2018-06-09 14:49 ` João Távora [this message]
2018-06-09 15:18 ` Eli Zaretskii
2018-06-14 23:23 ` João Távora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wov8dnfx.fsf@gmail.com \
--to=joaotavora@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).