From: Damian C. <pd...@al...> - 2004-09-03 22:55:06
|
On Friday, Sep 3, 2004, T. Onoma wrote: > Just a random thought: > > _All_ tags have a global resolution. Tags without a specific globalizer > resolve to yaml.org,2002:private/^. That's possible, and has the advantage of offering the next software layer a uniform representation of tags. On the other hand, it then means that private-tag purists have to be aware of the extra prefix, which is only there for URI compatibility. A Python fan might expect !graphix.shapes.Square to map directly to package graphix.shapes and class name Square, and be annoyed at having to strip off the tag:yaml.org,2002:private/ prefix first... Especially since all this prefix signifies is that there is no prefix... :-) > - !../int # yaml.org,2002:int Strictly speaking, tags URIs are not hierarchical in that way, so ../ is meaningless -- that's why we have to define our cooking process ourselves, rather than talking in terms of relative URI references and base URIs and all that jazz. It's also why I personally prefer to avoid slashes in tag URIs (even though they do no actual harm so long as you know they are not special characters in non-hierarchical URIs). Finally, !!int has the advantage that it *always* refers to tag:yaml.org,2002:int, even if a default prefix is defined. - Damian -- Damian Cugley, Alleged Literature http://www.alleged.org.uk/pdc/ |