Ivan Tham
Ivan Tham
I believe it would be nice to support the additional feature using feature gates. I will be trying this as it is a blocker for me to implement yaml2json.
I added my implementation in https://github.com/pickfire/mini-yaml, very experimental. Currently can parse certain flow scalar, flow/block sequence, flow mapping and block implicit mapping. Still figuring out how to parse implicit flow...
@dtolnay Thanks a lot for sharing that link. By the way, do you think I should implement it in a function way instead of using an iterator like what yaml-rust...
@dtolnay Looks a lot harder than I think, I probably will not be continuing the project. If anyone is interested can take a look at https://github.com/pickfire/mini-yaml, the implementation is a...
@Stupremee Serializing and deserializing could be added later but it should be designed with that in mind, taking a look at serde_json and serde_cbor would help but the design of...
@NilsIrl YAML is complicated, last time I tried implementing I was surprised how different YAML libraries got different results for different edge cases. I think StrictYAML may be a better...
```rust assert_eq!(j, "{\"msg\":\"abc\nxyzz\"}"); // not a commitment in the API, but in practice this is what it will be ``` Is the extra `z` a mistake? Is this code similar...
Ah, so there is a reduction of `\` in place. I did saw that but not sure if it's correct. But the mistake I mean is the additional `z`. Why...
Ah, I thought we are going to shift all the bytes from the right because the last `z` would be unused. Is it useful? Imagine having a lot of newline...
@dtolnay I don't think that matters, for me I believe reducing one `offset` operation makes it faster? Maybe a benchmark will tell. (of course we could do it in two...