Skip to content

Why does outer_view return Option instead of Result? #347

@roek-pnnl

Description

@roek-pnnl

I'm building an application that uses sprs for sparse matrices, and I've been debating how to handle errors when the user asks for a row or column that is out of bounds. sprs handles this with an option, but I would have expected a Result, for error handling. I'm inclined to use Result in downstream parts of my own application, but if there's a compelling reason why sprs uses Option instead then I might stick to that for consistency with your package! Thank you!

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