Re: Next YAML: drop equality definition

Oren Ben-Kiki <[email protected]> Fri, 4 Mar 2016 19:04:57 +0200
Newsgroups gmane.text.yaml.general
Message-ID <CADJiDhsRJW+r=UH-neFtAYAwLgNhd5X+YeDAexPmKobJUFs53g@mail.gmail.com>
On Fri, Mar 4, 2016 at 7:01 PM, Osamu TAKEUCHI <[email protected]> wrote:

> Let me confirm one point. Does this allow identity-based
> comparison of mapping nodes with some specific tags?


Not sure what you mean. In YAML each mapping node has its own identity
which is different from all other nodes. The only way for two mapping nodes
to have the same identity is via an alias (anchor and reference).


> > But that issue doesn't seem to be the one raised here;
> >the problem seems to be with the "early duplicates detection".
> >Which, again, is explicitly not required by the spec.
> >So I'm not certain what the actual problem is with the current
> >rules. Is this a case of the perceived rules being different
> >from the actual rules in the spec?
>
> If you don't see any problem to relax the equality detection
> as above, neither do I.
>

There's no need to "relax" it, it is "relaxed" already.

Oren.

------------------------------------------------------------------------------

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core