Welcome! Please see the About page for a little more info on how this works.

0 votes
in data.fressian by

clojure.data.fressian doesn't have a ReadHandler defined for "set". This means that when you serialise and deserialise a Clojure PersistentHashSet, it returns as a java.util.HashMap. Is there a reason why we wouldn't define a ReadHandler for "set" in clojure-read-handlers?

3 Answers

0 votes
by

Comment made by: desk@danielcompton.net

@stu is it intentional that c.d.f doesn't have a ReadHandler for reading fressian sets into persistent sets, or vectors into persistent vectors?

0 votes
by

Comment made by: stu

It is intentional, but not necessarily a great idea. Just burned me today.

0 votes
by
Reference: https://clojure.atlassian.net/browse/DFRS-5 (reported by desk@danielcompton.net)
...