[Bug 1381] [XQuery] some editorial comments on A.1.1 grammar-note: reserved-function-names

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





------- Additional Comments From cmsmcq@w3.org  2005-07-07 03:12 -------
I think the point about the parser is well taken.  Here is 
a candidate rewording:

   Unprefixed function names spelled the same way as language
   keywords could make the language harder to recognize.  For
   instance, "if(foo)" could be taken either as a FunctionCall or
   as the beginning of an IfExpr.  Therefore it is not legal
   syntax for a user to invoke functions with unprefixed names
   which match any of the names in A.3 Reserved Function Names.

   A function named "if" can be called by binding its namespace
   to a prefix and using the prefixed form:  "library:if(foo)"
   instead of "if(foo)".

[Alternatively, "Therefore functions with local names matching
... MUST be invoked in a prefixed form, not in an unprefixed
form."]

[Optionally show parse trees from proposal in bug 1390.]

Received on Thursday, 7 July 2005 03:12:11 UTC