-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Implement Reflect for TypeId #4976
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Reflecting on this more, I think you're right. It's probably best to allow the serialization method to access the registry (even if #4782 lands) as this gives the best control and flexibility for types going forward. We could probably add that functionality to #4782 itself or create a new PR for it (I don't think it should be included as part of this one). |
Agreed, that's a big change beyond the scope of this PR. I think it probably belongs in a new PR. I'm also not certain on how it should be done. |
I’m in favor of the parameter method. The TLS solution will probably be a lot more controversial and a bigger change. So just adding it as a parameter is probably simplest and most likely to be approved for now |
I'll investigate that and open a PR if I can get it working |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PROMETHIA-27, once this is rebased and the serialization fixed (remember to fix the PR description) I'm happy to merge this.
Other code LGTM.
9783d4a
to
249456c
Compare
249456c
to
7673db7
Compare
Making a new PR for this soon:tm: |
Objective
Allows reflection and serialization of TypeIds. This is helpful for serializing and deserializing certain types that use TypeIds and are otherwise reflectable/serializable.
Solution
Issues:
TypeId("{type name here}")
once 4561 hitsAlternative solutions: