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

First steps reducing fmt usage. #365

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Dec 4, 2022

Per #364, this is a first step on the road to eliminating usage of fmt from the library; it removes most direct uses of it from the exc package. The remaining bits are Failedf and friends. I'd like to just remove these, but that requires changing every downstream call site, and I wanted to keep this patch small for today; I can tackle that when I have a bit more time. I don't think it will be too hard; from a quick skim WrapError covers 99% of the use cases, and the rest won't be hard to replace with things from strconv.

Per capnproto#364, this is a first step on the road to eliminating usage of fmt
from the library; it removes most direct uses of it from the exc
package. The remaining bits are Failedf and friends. I'd like to just
remove these, but that requires changing every downstream call site, and
I wanted to keep this patch small for today; I can tackle that when I
have a bit more time. I don't think it will be too hard; from a quick
skim WrapError covers 99% of the use cases, and the rest won't be hard
to replace with things from strconv.
@lthibault lthibault merged commit 93ab30d into capnproto:main Dec 5, 2022
@zenhack zenhack deleted the reduce-fmt-1 branch December 5, 2022 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants