[Top][All Lists]

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

Re: [PATCH] Accept plists when serializing and parsing JSON

From: Stefan Monnier
Subject: Re: [PATCH] Accept plists when serializing and parsing JSON
Date: Sun, 03 Jun 2018 00:05:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> wrote, it's "read-only from json.c"". You may hold another
> interpretation, and that's just fine, but by "global state", in Emacs, I
> understand things like buffer, point, mark, match data, etc... That is,
> I mean exactly what Emacs adds to these functions' docstrings. From
> help-fns.el
>   (when (or (function-get function 'pure)
>             (function-get function 'side-effect-free))
>           (insert "\nThis function does not change global state, "
>                   "including the match data."))
> This is what I mean by global state. Anything else is potentially
> erudite bikeshedding in which I'm not particularly interested right now.

Notice the use of "change" in that docstring.  Looking up the value of
a dynamically-scoped variable doesn't *change* global state, but it
*uses* global state.

But yes, this is quickly falling into "erudite bikeshedding" territory,
so I'll stop before giving my opinion.


reply via email to

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