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

_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to