Skip to content

Documentation/fix for default handlers #47

@wilkerlucio

Description

@wilkerlucio

Currently we are missing docs on how to use default read/write handlers. Also the current implementation only accepts "default" as string, not :default.

In case someone gets here by looking for how to make default handlers, here is some sample code:

; default write

(deftype DefaultHandler []
  Object
  (tag [this v] "unknown")
  (rep [this v] (pr-str v)))

(def write-handlers
  {"default" (DefaultHandler.)})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions