-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
back at the beginning of clues, I wanted errors and context to be completely separate missions. Ie: orgs could pick one or the other and be okay. So at the time I only added clues context with a builder: clues.New("err").WithClues(ctx). We ended up using that so much that I made some QoL funcs: clues.NewWC(ctx, "err"). That helped, but it has also produced a _lot_ of confusion about when it is correct to provide a ctx or not. For the longest time I've kept this current design because I didn't want to demand a context if the erroring function didn't already call for one. But the complaints about complexity and misunderstanding have a point. So I'm removing the *WC funcs and moving ctx into the regular error generators. Callers are allowed to provide a nil context if they don't have one. The goal here is simplification: don't ask developers to make decisions, just provide a context when you have one.
- Loading branch information
1 parent
721af7f
commit 73461ba
Showing
4 changed files
with
299 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.