Skip to content

Default method for YASON:ENCODE #66

@fiddlerwoaroof

Description

@fiddlerwoaroof

I wonder if it would make sense to add a default method like this to YASON:ENCODE:

(defmethod yason:encode (o &optional s)
  (yason:with-output (s)
    (yason:encode-object o)))

This way, ENCODE will automatically work with any objects that define YASON:ENCODE-SLOTS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions