-
Notifications
You must be signed in to change notification settings - Fork 60
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
What to do about empty sequences and mappings? #10
Comments
Good question. How about this::
|
I assume you mean
? If so, I'm perfectly fine with emitting nothing for empty lists and dicts. |
oops, yeah that. I was anyway thinking of creating a null type and this is almost the same thing. Let me ponder this for a day or so though before I implement though. I need to think through the implications. |
Still not sure if this is the best approach, but anyway: 58bba77 is released on version 0.3.8. |
I've been writing a
Dumper
that outputs data conforming to strictyaml, and in my testing of it's behaviour, I've found a problem: the only way to represent empty sequences and mappings in YAML is with flow style, which strictyaml disallows. I don't really know any way around making an exception for[]
and{}
, though, aside from just refusing to dump empty lists and dicts.The text was updated successfully, but these errors were encountered: