7

GitHub - sigma/marshal.el

 2 years ago
source link: https://github.com/sigma/marshal.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

EIEIO marshalling, inspired by Go tagged structs.

alist, plist and json drivers are provided, but implementing others just requires to inherit from `marshal-driver'.

It's also possible to maintain a private drivers "namespace", by providing the :marshal-base-cls option to `marshal-defclass'.

This is particularly useful to maintain different "views" of the same object (potentially using the same driver) without having to register many drivers in the global space.

See inline documentation for examples.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK