From: <in...@tt...> - 2006-04-15 02:30:19
|
On 15/04/06 00:06 +0300, Oren Ben-Kiki wrote: > > OK... I just had a chat with Xitology and I finally remembered why the > current spec makes ! "10:20" a no-op. It had to do with implicit typing > of collections. The spec is still a bit muddled, though. Here's what it > should have said... > > - There are two non-specific tags, '?' and '$'. > > - '$' ("non-implicit") is resolved as !!str, !!map and !!seq based on > the node kind. > > - '?' ("is-implicit") is resolved by matching the content against an > application specific repository (which presumably contains stuff like > integers, dates, etc. for scalars and possibly sets, ordered mappings, > etc. for collections) > > - By default, untagged plain scalars and all untagged collections are > "is-implicit". All other untagged nodes are "non-implicit". Explicitl > tagged nodes get the specific tag, of course. > > - Tagging a node with a single "!" means reversing the default - plain > scalars and collection become "non-implicit", everything else becomes > "is-implicit". I don't like this. What does it buy us in clarity? All the reversals can be done in much clearer ways. Let's just make '!' mean is-implicit. Cheers, Ingy |