On Tue, 21 Oct 2003, Clark C. Evans wrote:

> On Tue, Oct 21, 2003 at 09:12:27AM -0400, Dan Sugalski wrote:
> | We're talking about the first thing in a file (or stream, or whatever). I
> | was under the impression that XML files should be entirely composed of
> | valid XML, hence the need for the stream type marker being valid XML. YAML
> | doesn't care as much, so far as I understand, and for our own internal
> | binary format we cna do whatever we want.
>
> As for 'autodetecting' XML vs YAML

We don't have to! Woohoo! :)

This is one problem I didn't want to go into, so the encoding would be
explicit in the header. Since we've now dodged even the pretense of
guaranteed minimally valid anything in the stream header, the point's
moot, which is nice.

For YAML encoding, like for XML (and the default native encoding, which'll
probably be parrot bytecode) everything after the end-of-header will be
proper, well-formed whatever. Unless the encoder's messed up, of course.
;)

                                        Dan

Reply via email to