taoensso / nippy

The fastest serialization library for Clojure
https://www.taoensso.com/nippy
Eclipse Public License 1.0
1.04k stars 60 forks source link

Can the writer functions (e.g., write-vec) be made public? #110

Closed isaksky closed 6 years ago

isaksky commented 6 years ago

I see that the writer-functions from nippy are private. Here is write-vec, for example:

https://github.com/ptaoussanis/nippy/blob/master/src/taoensso/nippy.clj#L471

This makes it harder than it needs to extend freezing/thawing to custom types. For a lot of custom types, they are just special containers that have a normal clojure data inside, so it would be useful to just be able to pick an object apart, then use something like write-vec in our custom handlers.

Can functions like these be made public?

Apologies if there are other supported ways to do this already that I missed.

isaksky commented 6 years ago

Never mind, I see we can just use freeze-to-out! in the freeze handlers.