[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] json: Add support for encoding structs
From: |
Ted Zlatanov |
Subject: |
Re: [PATCH] json: Add support for encoding structs |
Date: |
Mon, 24 Apr 2017 17:00:32 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
On Mon, 24 Apr 2017 15:17:08 -0400 Ted Zlatanov <address@hidden> wrote:
TZ> I also want to ask if the keywords could be less JSON-specific, since
TZ> other serializers could be used. So you'd use keywords like
TZ> :serialize-field, :serialize-ignore, :serialize-to-type instead of the
TZ> ones you proposed.
TZ> Finally, maybe we could also consider using the existing facility
TZ> :print-function (the manual says that's currently unused). But I don't
TZ> know the full implications of that, so maybe it's a bad suggestion.
BTW EIEIO has support for serializing already, so maybe it makes sense
to make your feature use their keywords (:printer etc.):
https://www.gnu.org/software/emacs/manual/html_node/eieio/Slot-Options.html#Slot-Options
...or maybe their stuff is too object-oriented :)
Ted
- [PATCH] json: Add support for encoding structs, Vibhav Pant, 2017/04/23
- Re: [PATCH] json: Add support for encoding structs, Ted Zlatanov, 2017/04/24
- Re: [PATCH] json: Add support for encoding structs, Vibhav Pant, 2017/04/24
- Re: [PATCH] json: Add support for encoding structs, Ted Zlatanov, 2017/04/24
- Re: [PATCH] json: Add support for encoding structs,
Ted Zlatanov <=
- Re: [PATCH] json: Add support for encoding structs, Stefan Monnier, 2017/04/24
- Re: [PATCH] json: Add support for encoding structs, Ted Zlatanov, 2017/04/25
- Re: [PATCH] json: Add support for encoding structs, Vibhav Pant, 2017/04/25
- Re: [PATCH] json: Add support for encoding structs, Ted Zlatanov, 2017/04/25
- Re: [PATCH] json: Add support for encoding structs, Stefan Monnier, 2017/04/26
- Re: [PATCH] json: Add support for encoding structs, Vibhav Pant, 2017/04/27
- Re: [PATCH] json: Add support for encoding structs, Stefan Monnier, 2017/04/27
- Re: [PATCH] json: Add support for encoding structs, Vibhav Pant, 2017/04/25
- Re: [PATCH] json: Add support for encoding structs, Davis Herring, 2017/04/24
- Re: [PATCH] json: Add support for encoding structs, Vibhav Pant, 2017/04/25