Closed rudolph-miller closed 9 years ago
(defclass user () ((name :type string) (tag :type cons)))
(defmethod deflate ((type cons) value) (list-to-csv value))
(defmethod inflate ((type cons) value) (csv-to-list value))
or so.
Cool. I think it's quite useful :sparkles:
like
(defmethod type-inflate ((type 'timestamp) value) (local-time:universal-to-timestamp value))
If Integral can handle type-inflate and type-deflate, people can handle custom type.