Re: DEP-5: general file syntax
Ben Finney <firstname.lastname@example.org> writes:
> Lars Wirzenius <email@example.com> writes:
>> * Have one copyright statement per Copyright field, and have multiple
>> instances of the field.
> This is my preference, and what I've been doing in my packages.
Unfortunately, this creates real challenges for parsers. I've written a
few RFC 5322 parsers, particularly for Usenet, and allowing repetition of
headers always causes headaches in representation. You end up having to
add another layer of data structure, with corresponding changes to
everything that consumes information from the parser, if you don't want to
throw away information. It's also a divergence from the Debian control
file format, which allows only one instance of a field per stanza,
probably for much the same reason.
Russ Allbery (firstname.lastname@example.org) <http://www.eyrie.org/~eagle/>