Skip to content

Type classes #7

@matthieu

Description

@matthieu

typeclass Serializable ser (write ser) (read str)
typebind Serializable Array (
write = lambda ser ( ...)
)
foo = new Array [1,2,3,4]
write foo

How to work around the impossibility to discriminate based on function return types (like read above).

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