Gei0r

Results 16 comments of Gei0r

Coming from javascript, I'm also surprised that tasks are lazy. The following workflow is great with coroutines, but I don't think it's possible to achieve with only lazy tasks: ```C++...

Yeah, both would be awesome 😎

Same issue on Ubuntu 21.10, Gnome 40.4.0

> Maybe key_is_null()/val_is_null() should be taken into account when emitting? Won't help, because the string is already interpreted as `null` during parsing: ```cpp #include #include int main() { ryml::Tree tr;...

I agree with your idea of how it should look like. I think I can take a look over the weekend, maybe just start with some test cases.

My testing so far has revealed the following, which you maybe already knew: 1. `c4::basic_substring` considers zero-length strings to be "equal" to `nullptr` ([here](https://github.com/biojppm/c4core/blob/e4c1554283cdc1a22a358b59df4e30b5e2edebe6/src/c4/substr.hpp#L254)) 2. Therefore, when a yaml string...

Let's continue the discussion at the [merge request](https://github.com/biojppm/rapidyaml/pull/264)

I implemented option no. 2: - `len == 0 && str == nullptr` → This is a "null" string - `len == 0 && str != nullptr` → This is...

@biojppm Can you look into this? I'm not sure, but since we would lose location information for null scalars, it might be a better option to invent a new flag...

Yeah, likewise sorry for not being more engaged with this issue. If you want, I can take a look today. Nice that you found a way to store the location...