jam1garner / jam1garner/some-error
Using some-error with itself?
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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