-
Notifications
You must be signed in to change notification settings - Fork 734
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
core: Consider changing Value to dispatch primitives with an enum rather than trait objects #925
Comments
Value
to dispatch primitives with an enum rather than trait objects
I like the wrapper-struct approach like @hawkw's sketch. I don't want to become the "well, actually in |
Yup, that was a big part of the inspiration for this change. :) |
Ah gotcha! 😄 As a future possibility, if you haven’t checked it out already you could also find some inspiration in the way |
Hmm, that's interesting and maybe worth looking into in the future as an optimization! I considered a safe version of this that relies on creating a closure that calls |
Feature Request
Crates
Motivation
As detailed in #922, we have the opportunity to make breaking changes in
tracing-core
with the release of Tokio 0.3.Proposal
While I believe that @hawkw and @carllerche have talked more about this, @hawkw shared a sketch of a possible approach.
The text was updated successfully, but these errors were encountered: