Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After some feedback from Reddit, discussion on Makeroom and (a small amount of) thinking, I wondered if this is a good compromise to the problem of having lots of differently named sub-packages be passed as arguments to
fault.Wrap
Was the suggestion, which does read more nicely.
Though I'm conscious of bloating the
fault
namespace, these are just additional utilities after all and a user of Fault isn't necessarily interested in the error kinds utility or the context utility. For this reason, I would prefer to keep them as sub-packages.As a compromise, I'm trying out a f- prefix with short names so that they are
f
insidefault.Wrap
it displays each of theWith
functions from the Fault utilities)Now it would look like this:
Lastly, this is a big nitpick, but I would like
fdesc
to be 4 characters long, just to align nicely with the others! Maybe I'll think of something tomorrow...