W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2005

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

From: <bugzilla@wiggum.w3.org>
Date: Thu, 07 Jul 2005 03:12:04 +0000
To: public-qt-comments@w3.org
Message-Id: <E1DqMo0-0003tK-45@wiggum.w3.org>


------- 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

[Optionally show parse trees from proposal in bug 1390.]
Received on Thursday, 7 July 2005 03:12:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:25 UTC