-
Notifications
You must be signed in to change notification settings - Fork 126
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
Type names should allow using ::
as an identifier
#302
Comments
How is RON deserializer expected to know the fully qualified path to a type? |
I don't expect it to. I don't want it to know any types or anything. I just want files where |
I guess we can just support parsing "::" there. It's not obvious to me if this would bring any downsides. |
Hmm, what would I need to do if I wanted to add this myself? |
You can start by inspecting see how the parser skips the names in the code, currently. |
Some issues/questions that arise from thinking about this:
|
Hmm, I looked into this a bit and before I do any work I realized these idents don't actually get recorded in |
Yes, that's because serde's type model doesn't have any way to pass the ident of a string. It's inspired by JSON which doesn't have them, so we can't get the data from the deserializer to the |
That's unfortunate :( |
Yep. However, I'm working on something right now that will allow preserving all the metadata. |
When describing rust data, it can be prefferable to use the full type names of values to avoid ambiguity. However, this loses a significant amount of ron s simplicity since it forces all type names to be in strings. This is a tiny subset of the features which would be enabled by #242.
The text was updated successfully, but these errors were encountered: