jam1garner / jam1garner/some-error

Using some-error with itself?

Open
#1 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
18
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Would it be possible to do something like:

fn f12() -> Result<(), E1 + E2> { ... }

fn f123() -> Result<(), E1 + E2 + E3> {
  f12()?;
  ...
}

In other words I'd like to be able to have a From implementation from one anonymous sum type to another. It seems like without this you're stuck building a hierarchy of errors into your type, which could make a change of implementation (to use a different set of functions) into a breaking change.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. Start by reviewing the repository's existing Rust anonymous-sum and From behavior, then define how conversion between overlapping error sums should work; done means the f12/f123 pattern is supported without forcing a fixed error hierarchy.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.