Skip to content

use Maybe type for error handling (Fail case) #303

Description

@unional
NumericStruct.Add<NumericStruct.FromNumeric<A, Fail>, NumericStruct.FromNumeric<B, Fail>>
//              ^ fail as input not accepting `Fail`

Instead of:

type NumericStruct.Add<A extends NumericStruct, B extends NumericStruct> ...

Accept Maybe<NumericStruct> and propagate the error.

This will simplify many implementation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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