Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify swapper error monads #8315

Open
woodenfurniture opened this issue Dec 9, 2024 · 0 comments
Open

Simplify swapper error monads #8315

woodenfurniture opened this issue Dec 9, 2024 · 0 comments

Comments

@woodenfurniture
Copy link
Member

Overview

I wish we had

return SwapErr({ ... })

instead of

return Err(makeSwapErrorRight({ ... }))

References and additional details

If SwapErr as a class extending Err isn't doable, then a function achieving the same idea is fine.

Context
#8294 (comment)

Acceptance Criteria

  • makeSwapErrorRight is removed in favor of SwapErr (or equivalent) which is an extension of Err

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant