W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2008

[Bug 5696] Feature request to aid static typing

From: <bugzilla@farnsworth.w3.org>
Date: Fri, 16 May 2008 17:53:24 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Jx47Q-0001UG-RY@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5696





------- Comment #1 from mike@saxonica.com  2008-05-16 17:53 -------
Presumably the issue also affects our own version of this function in

http://www.w3.org/TR/xpath-functions/#value-except

I've often argued that a=b should return false if a and b are of incomparable
types, but I've always lost the argument to those who prefer the diagnostic
power of raising an error. There are arguments both ways.

A possible circumvention is to use one of the functions that does allow
comparison of incomparables, for example index-of(), distinct-values(), or
deep-equal(). If you don't want (a eq b) to fail, you can always write it as
deep-equal(a, b).
Received on Friday, 16 May 2008 17:54:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:23 UTC