Re: Help understanfing tag resolution confusion
Oren Ben-Kiki <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CADJiDhuOyZRaOBa2kVtcpn-hn3Sn1u31fwY550B5e6cmf1Btmw@mail.gmail.com> |
A tag is just a URI. The spec has a lot to say about how a full
("verbatim") tag (URI) can be specified using shorthand formats. It doesn't
specify any transformation on the full ("verbatim") URI once one has been
obtained.
On Fri, Feb 1, 2013 at 11:24 PM, Trans <[email protected]> wrote:
> Ok, so all tags are *verbatim*, and there is no official spec that says
> `tag:foo` should be considered the same as `foo`. Is the correct?
>
> Also, to be clear, is there any reason that Psych transforms `foo.org,2000/foo`
> into `foo.org,2000:foo`? Why would it change the '/' to a ':'? maybe b/c
> of old spec or something?
>
> I appreciate the help.
>
> On Fri, Feb 1, 2013 at 3:35 PM, Oren Ben-Kiki <[email protected]> wrote:
>
>> I'm not certain about the specific library implementation, but the spec
>> is pretty clear on tag resolution (well... as clear as I succeeded in
>> making it :-)
>>
>> Different verbatim tags in general map to different types, but an
>> application is allowed to define any mapping it wants between tags and
>> native types, so if it chooses to make !<foo> and !<bar> both be the same
>> type baz, that's its business (though it is arguably confusing and needs a
>> good reason). It _sounds_ like this is what the library is doing as an
>> intentional practice, I'm not certain why.
>>
>> Have fun,
>>
>> Oren Ben-Kiki
>>
>>
>> 2013/2/1 Trans <[email protected]>
>>
>>>
>>> Sorry, typo:
>>>
>>> s/`tag:foo.org:foo` of `tag:foo`/`tag:foo.org:foo` or `tag:foo`/
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_jan
>>> _______________________________________________
>>> Yaml-core mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/yaml-core
>>>
>>>
>>
>
>
> --
> Sorry, says the barman, we don't serve neutrinos. A neutrino walks into a
> bar.
>
> Trans <[email protected]>
> 7r4n5.com http://7r4n5.com
>
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core