On 25 January 2014 09:01, Michael Kay <[email protected]> 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 _______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
