in reply to Re: Should IO::YAML ignore leading comments?
in thread Should IO::YAML ignore leading comments?

Why were you wrong? Your explanation was what I would have thought of. Can you explain why it isn't so?

thanks

Clint

  • Comment on Re^2: Should IO::YAML ignore leading comments?

Replies are listed 'Best First'.
Re^3: Should IO::YAML ignore leading comments?
by dynamo (Chaplain) on Sep 20, 2007 at 22:35 UTC
    I'm not 100% sure I understand your question, but basically, I am wrong about the above example being two docs (the first one empty, aside from the comment) because the current (v1.1) YAML spec says so, and well, being the spec and all, it trumps my opinion.

    The second link from my updated comment (figure 2.7), and most especially it's caption "_two_ documents in a stream" says it better than I could if I were to try to rephrase.

    If comments could be their own documents, that caption would say "four documents in a stream, two of which are empty but have comments".

    Hope that helps, - d