Skip to content

Move to unique data types within sum types; remove partial functions in records #156

@L0neGamer

Description

@L0neGamer

Currently the code base is rife with records that are partial functions. Additionally, it's hard for users of the library to extract and separate processing of different elements of sum types, meaning they either have to do all the processing of each sum type in the case/function they're writing, or they need to have many "dead" cases where, say, an Event is passed in but they only want to process Ready events, so a maybe value is returned.

This would be a large refactor, and should likely be done in parts.

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