-
Notifications
You must be signed in to change notification settings - Fork 124
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
Current issues with Value
#122
Comments
Can some of these boxes be ticket now? It seems at least the first one can.. |
Issue has had no activity in the last 180 days and is going to be closed in 7 days if no further activity occurs |
comment |
Any plans on improving this or this is out of scope ? |
Yes, many plans, little time (research + small child) :/ If you can help with any part, I'd really appreciate it :) |
I'm interested in making the conversion "ron str" -> |
Essentially the Value type would need to become an AST-like type for everything the current grammar can represent. Then ron string -> Value -> string would be lossless. You can find the grammar here: https://github.com/ron-rs/ron/blob/master/docs/grammar.md (it even has a Value section). |
Ok, i've got smtg like this: pub enum Value {
Bool(bool),
Char(char),
Map(Map),
Struct(Option<String>, Map),
Number(Number),
Option(Option<Box<Value>>),
String(String),
Bytes(Vec<u8>),
Seq(Vec<Value>),
Tuple(Option<String>, Vec<Value>),
Unit,
} |
I’d probably make the following changes:
|
I was thinking of using Do you still think it's better to add a new variant ? In that case, maybe |
UnitStruct:
as input)The text was updated successfully, but these errors were encountered: