W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2007

[Bug 4441] [XQuery] 2.3.4 Optimization rules unclear?

From: <bugzilla@wiggum.w3.org>
Date: Sat, 31 Mar 2007 23:02:03 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1HXmaB-0004Tx-DD@wiggum.w3.org>

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





------- Comment #2 from martin@x-hive.com  2007-03-31 23:02 -------
Also, it's often possible to re-write functions in a way that doesn't use side
effects. E.g. you could formalize the environment using a variable (even if it
doesn't really contain a value but evaluates to the empty sequence):
let $env := local:prepareEnvironment()
return ($env, local:do-something())

This enforces evaluation of the method body in all implementations if I'm not
mistaken. Or you might actually find something useful to return...
Received on Saturday, 31 March 2007 23:02:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:19 GMT