Skip to content

Can we use a special result type instead of throwing? #7

Description

@artfuldev

Currently, we're using throws of strings in certain cases (like content parsing), and just returning different kinds of strings in other cases (like sending emails), to differentiate between success and failure of an operation.

Can we instead use a special result type to signify things that can fail expectedly?
Kind of like railway oriented programming?

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