On Mon, Aug 30, 2004 at 09:24:46AM -0700, Sean O'Dell wrote:
| I personally would PREFER namespaces were described using YAML data.
| The special syntax used at the beginning of YAML docs now is something
| I really don't like. It seems too "exceptional" and I don't understand
| why, when YAML us so useful, it can't be used as a valid YAML header
| document for EVERYTHING meta.
| They don't need to be separate files, just in separate docs. Since
| YAML can have multiple docs, just make a header document that can be
| in with the file where the data document resides, or make an external
| reference mechanism.
Clever. Hmm. How could/would this interact with the shortcuts?
I'm uncomfortable with removing the shortcuts... they are so nice;
it seemed T.Onoma's issue was with the ^ cut/paste mechanism.
On Mon, Aug 30, 2004 at 01:12:02PM -0400, T. Onoma wrote:
| On Monday 30 August 2004 11:18 am, Clark C. Evans wrote:
| > 3. We add a prefix mechanism,
| > %TAG:ts=tag:clarkevans.com,2003-02:timesheet
| > !ts:sheet -> tag:clarkevans.com,2003-02:timesheet:sheet
| > 4. Directives carry over to the next document in the same
| > stream to ease declaration burden
| Little confused: is it tag:yaml.org,2002/str or tag:yaml.org,2002:str
| and would it be !perl/BlahBlah or !perl:BlahBlah ? I'm getting my colons
| and slashes all mixed up! aaaaaay!!!
See the current specification for 1 and 2; I like the shortcuts
and how they currently work.
| So the laziness of !! is really about registered vs. unregistered. But, why
| worry about it b/c if the tag isn't recognized, it should default to
| private.yaml.org,2002:whatever anyway, right?
There is a big difference between a type, such as !bool, which
the current parser does not support; and someone's private type,
with private semantics called !!type.
Use of an undefined prefix (for #3) would be an exception.
| Oh, I want to point out too that !perl/, !ruby/, etc. are rather
| to interoperability. Wouldn't just !Text::Tabs be enough? If the
| implementation knew what it was then great, otherwise make em private.
The shorthand for !xxx/ is for published vocabularies. Examples would
be a schema language, transformation language, XML mapping, types
specific to Python, Perl, etc. Certainly one would want to use !int
when YAML has a defined type that matches in the repository, but
otherwise, specific languages may want to include their own types.
Look at it this way, you need to 'transform' from Perl -> Python
data seriailzations, it will be important to name specific types
in both vocabularies.
Clark C. Evans Prometheus Research, LLC.
o office: +1.203.777.2550
~/ , mobile: +1.203.444.0557
(( Prometheus Research: Transforming Data Into Knowledge
\/ - Research Exchange Database
/\ - Survey & Assessment Technologies
` \ - Software Tools for Researchers