yaml / yaml-spec

YAML Specification
http://yaml.org/spec/
348 stars 53 forks source link

Link to this RFC: https://github.com/yaml/yaml-spec/blob/master/rfc/RFC-0005.md #301

Closed KrazyKrazy8 closed 1 year ago

KrazyKrazy8 commented 1 year ago
          Link to this RFC: https://github.com/yaml/yaml-spec/blob/master/rfc/RFC-0005.md

I just realised that the proposal does not explicitly specify that defining any directives between documents effectively resets all directives, as is done in YAML 1.1. Thinking about it now, I'm not sure that really makes sense. Why not just let each directive be treated independently, and have it just modify the current state? That does make concatenating documents a bit more difficult, if they may be prefixed by directives, but I'm not sure that's really an actual issue.

Originally posted by @eemeli in https://github.com/yaml/yaml-spec/issues/79#issuecomment-755397776