Skip to content

arch: use results for operations that can fail #24

@mrlem

Description

@mrlem

Because exception are loose in kotlin, and a viewmodel has no idea what exceptions are thrown upstream in a datasource... and shouldn't have to know.

Results allow to map errors to domain errors via monads, which have more sense when reaching UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions