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

Liam R E Quin liam at w3.org
Fri Jan 24 21:54:06 PST 2014


On Sat, 2014-01-25 at 05:43 +0000, Ihe Onwuka wrote:
> ..are there any drawbacks to always using the general comparison form
> 
> thisThing = ('thatThing')
> 
> rather than
> 
> thisThing eq 'thatThing'
> 
> even when you know that you are dealing with a singleton sequence.

I find I can catch a lot of errors by using eq.

I can conceive of an implementation in which eq is faster but I doubt by
very much, you'd have to measure. I've often been quite surprised at
relative speeds of things though.

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml



More information about the talk mailing list