[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 36/56] json: Rename token JSON_ESCAPE & friends
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 36/56] json: Rename token JSON_ESCAPE & friends to JSON_INTERPOL |
Date: |
Tue, 14 Aug 2018 08:28:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Eric Blake <address@hidden> writes:
> On 08/08/2018 07:03 AM, Markus Armbruster wrote:
>> The JSON parser optionally supports interpolation. The code calls it
>> "escape". Awkward, because it uses the same term for escape sequences
>> within strings. The latter usage is consistent with RFC 7159 "The
>> JavaScript Object Notation (JSON) Data Interchange Format" and ISO C.
>> Call the former "interpolation" instead.
>>
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
>> include/qapi/qmp/json-lexer.h | 2 +-
>> qobject/json-lexer.c | 64 +++++++++++++++++------------------
>> qobject/json-parser.c | 8 ++---
>> 3 files changed, 37 insertions(+), 37 deletions(-)
>
> Mechanical, and a worthwhile name change.
>
> Reviewed-by: Eric Blake <address@hidden>
>
> Bike-shedding: Would INTERP (short for interpolate) be any more
> legible than INTERPOL (which I first read as short for 'international
> police')?
Ah, where's the fun in that!
When I read INTERP, I associate "interpreter". On the other hand, there
appears to be precedence for abbreviating "interpolate" /
"interpolation" to "interp" in numpy and MATLAB.
Another possible abbreviation would be IPOLATE.
- [Qemu-devel] [PATCH 37/56] json: Treat unwanted interpolation as lexical error, (continued)
- [Qemu-devel] [PATCH 37/56] json: Treat unwanted interpolation as lexical error, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 42/56] json: Improve names of lexer states related to numbers, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 50/56] json: Unbox tokens queue in JSONMessageParser, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 19/56] json: Tighten and simplify qstring_from_escaped_str()'s loop, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 36/56] json: Rename token JSON_ESCAPE & friends to JSON_INTERPOL, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 32/56] json: Have lexer call streamer directly, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 45/56] json: Fix streamer not to ignore trailing unterminated structures, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 25/56] json: Leave rejecting invalid escape sequences to parser, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 30/56] json: remove useless return value from lexer/parser, Markus Armbruster, 2018/08/08
- [Qemu-devel] [PATCH 24/56] json: Accept overlong \xC0\x80 as U+0000 ("modified UTF-8"), Markus Armbruster, 2018/08/08