Skip to content

Should TryBackend be used by default in the code examples? #2567

@valenterry

Description

@valenterry

STTP is agnostic to the backends used. However, as a Scala library, I think it should favor returning Try (or Either) over throwing exceptions by default in the code examples / documentation (unless explicitly using a yolo-backend like quick). This would be more consistent with the rest of the API that returns Either already (e.g. when handling the response). Currently the DefaultSyncBackend is used in the examples which throws exceptions.

If someone wants to opt into throwing exceptions, they can easily do that.

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