Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Doc: specializing 'write-value' #88

@slburson

Description

@slburson

The documentation says to specialize write-value like this:

(defmethod jzon:write-value (writer (job job)) ...)

This is incorrect, because the existing method on (writer t) will be more specific than the new one on (t job), so will be called instead. The correct way is to specialize on both parameters:

(defmethod jzon:write-value ((writer jzon:writer) (job job)) ...)

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