[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XQuery needs to prohibit variable redefinition

Michael Kay mhk at mhk.me.uk
Thu Jul 15 21:47:23 PDT 2004


  XQuery needs to prohibit variable redefinition
> That's the dumbest rationale for a language feature yet!  The language
> is also well-defined if variable redefinition are *not* allowed.
> 
> If we have a feature without a use-case, where removing it may reduce
> a *very* common case of beginner confusion (as we've seen too many
> times on this list), and a significant source of hard-to-find 
> (beginner
> and non-beginner) bugs, then it seems like a non-brainer to me.
> 
> (I'm guessing from your reply that you don't disagree.)


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.

Michael Kay



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.