Skip to content

Return Result values from functions #5

@JeffBelgum

Description

@JeffBelgum

Most statistics functions can fail if certain invariants aren't met. These invariants must be checked against at runtime, therefore functions should return Results rather than values.

A single result type should be defined for the library with a single error type that implements the Error trait. This will be a very breaking change to the api!

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