Re: Question about type tags

William Spitzak <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>

Oren Ben-Kiki wrote:

>> - !A {name: nameofa, a: value of a}
>> - !B {name: nameofb, b: value of b}
>> - !A {name: nameofa2, a: value}
>> ...

> Of course you have another option: look
> in the hash table and decide whether to load it to an A or a B depending
> on whether you see an 'a' key or a 'b' key.

I think I did not explain the problem right, the keys don't determine 
the class, it is just that some classes have different keys than others. 
We also have different classes with identical keys.

Now looking at the output for the non-tagged version, I'm starting to be 
happier with the !tag output, despite the json incompatibility. In 
particular the default indentation is nicer.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.