On Mon, 24 Nov 2003, Leopold Toetsch wrote:
> Dan Sugalski <[EMAIL PROTECTED]> wrote:
>
> >> > startpairs(name)
> >> > endpairs(name)
>
> > start/end pairs does the same thing, only what gets frozen is a series of
> > pairs (key/value things) rather than individual entries. And yes, I
> > realize that you can simulate pairs with alternating key/value entries in
> > the freeze stream, but I'd rather keep them separate.
>
> In the mean time I've checked in freeze/thaw for PerlHash. It uses an
> element count as list does. We could of course use your proposed scheme
^^^^^
You mis-spelled "will" here.
> with start/end-markers too. But thawing a list of a (first) unknown amount
> of items isn't really as simple as having a count.
Right -- it's even simpler, and makes doing logical skips through the
frozen data easier for code doing external examination, since there's
structure in the frozen data rather than a glob of random data elements.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk