[xquery-talk] XQuery needs to prohibit variable redefinition

Per Bothner per at bothner.com
Thu Jul 15 14:44:41 PDT 2004


Michael Kay wrote:

> I may be misrepresenting people but I suspect the underlying motivation is
> that the formal semantics, in translating queries to the core language,
> often generates multiple variables with the same name, and changing the rule
> would have caused some inconvenience in that area.

There is no reason why the Core Language can't allow
redefinitions, even if the User Language doesn't.

After all, the names added by Normalization are in the 'fs' namespace,
which users can't access anyway.
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/


More information about the talk mailing list