[r6rs-discuss] Re: [Formal] eq?/eqv? misbehave around NaNs [QNames]

From: Marcin 'Qrczak' Kowalczyk <qrczak>
Date: Sat Nov 25 04:06:59 2006

Per Bothner <per_at_bothner.com> writes:

> A QName can have a local-name, namespace-uri, and a prefix.
> The prefix is used for reading and writing XML names, but
> does not take part in equality comparisons: Two QNames
> are considered equal (in Scheme equal? and eqv?) if their
> local-name and namepace-uri match, even if their prefixes
> are different.

Perhaps reading and writing QNames should use the current mapping
between prefixes and namespace-uris, instead of storing the prefix
in the QName. (What namespace-uri is stored on reading?)

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak_at_knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/
Received on Sat Nov 25 2006 - 04:06:44 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC