From: Brian Ingerson <ingy@tt...> - 2002-10-31 01:56:24
I think it would behoove us to make yaml the first working serialization
software in Perl6. Actually, I can't imagine people using anything else.
----- Forwarded message from Damian Conway <damian@...> -----
From: Damian Conway <damian@...>
Date: Thu, 31 Oct 2002 09:57:12 +1100
To: "perl6-language@..." <perl6-language@...>
Subject: Re: Persistance of superpositions?
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1) Gecko/20020826
Brian Ingerson wrote:
>>Not quite. You also need to discriminate the *type* of the superposition:
> Oh right. I was thinking that C<any> and friends were operations, not types.
> YAML type-URIs are made up of a type-family with an optional format:
> is shorthand for:
> So I'm wondering if any|all|one|none can be formats of !super?
I guess so. But they're not really formats, so much as distinct types.
> And if so, should there be a default format?
> # !yaml.org/any
> letters: !any [a, b, c]
> # !yaml.org/super#all
> digits: !super#all
> - 0
> - 1
> - 2
> # !perl.yaml.org/one (Perl specific types)
> names: !perl/one [Brian, Ingy, Mr
> Inline] # (Yes, this dwims :)
Ugly. (And it would probably have to be !perl6/one)
> # !perl.yaml.org/super-none (longer type name, no format)
> sane: !perl/super-none
> - Larry
> - Damian
> - Brian
> It might be more forward thinking to allow any|all|one|none into the
> yaml.org type repository.
That's my view.
----- End forwarded message -----