|
[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 redefinitionMichael Kay mhk at mhk.me.ukThu Jul 15 21:47:23 PDT 2004
> 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








