Okay, I remember that being said before, but it's not obvious to me why that's the case. Why is it difficult to provide good error diagnostics if function defintions only have to be terminated by "}" instead of "};"? A high-level abstract answer is that error detection and recovery, for any input data, improves with the amount of redundancy in the data. More concretely, XQuery is a language with no reserved words, and without the semicolons, it was impossible to tell whether some invalid construct was trying to be a declaration in the prolog or was trying to be the main body of the query, or was just the result of the parser getting confused. People really want to get multiple syntax errors out in a single run, and for that you need some anchor points that the parser can use for recovery. For function definitions in particular it would be possible to get by without the ";" because the braces are present. But it's much cleaner in my view to have a consistent policy on delimiters: if you have them anywhere, you should have them everywhere. But as Jonathan Robie has said, we have to stop debating trivia and agree to differ. There are lots of people impatient for us to get this language finished, and they don't care a damn whether they have to write semicolons or not, so long as they can have it by Tuesday. Michael KayReceived on Friday, 30 April 2004 10:23:43 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:33 GMT