emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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