[xquery-talk] Everything is a sequence ...so ....

Andrew Welch andrew.j.welch at gmail.com
Sat Jan 25 01:42:15 PST 2014


On 25 January 2014 09:01, Michael Kay <mike at saxonica.com> wrote:
>
> The eq operator is easier to optimize because the type conversions it does are much simpler (in particular, exploiting indexes is more difficult). However, because 90% of the time people use "=", optimizers are likely to work hard at it even though it's intrinsically more difficult.
>
> But getting into the habit of using "eq" is something I would recommend because of the better diagnostics when you get things wrong.

The problem I have with eq is the potential for this:

<xsl:variable name="foo" select="() eq ()" as="xs:boolean"/>

(or maybe it's with xs:boolean)

There is a thread here:

http://markmail.org/thread/htioi45g53pswcv2


-- 
Andrew Welch
http://andrewjwelch.com



More information about the talk mailing list