W3C home > Mailing lists > Public > public-rif-wg@w3.org > January 2009

ISSUE-92 (n-ary string builtins): N-ary builtins for strings [DTB]

From: Rule Interchange Format Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Thu, 29 Jan 2009 20:47:38 +0000 (GMT)
To: public-rif-wg@w3.org
Message-Id: <20090129204738.59B436B62C@tibor.w3.org>


ISSUE-92 (n-ary string builtins): N-ary builtins for strings [DTB]

http://www.w3.org/2005/rules/wg/track/issues/92

Raised by: Christopher Welty
On product: DTB

In DTB section 3.5 (Functions and Predicates on Strings) we say:

Editor's Note: The following treatment of built-ins which may have multiple arities is a strawman proposal currently under discussion in the working group.

In the following, we encounter several versions of some built-ins with varying arity, since XPath and XQuery allow overloading, i.e. the same function or operator name occurring with different arities. We treat this likewise in RIF, by numbering the different versions of the respective built-ins and treating the unnumbered version as syntactic sugar, i.e. for instance instead of External( func:concat2( str1, str2) ) and External( func:concat3( str1 str2 str3 ) ) we allow the equivalent forms External( func:concat( str1, str2) ) and External( func:concat( str1 str2 str3 ) ). Note that this is really purely syntactic sugar, and does not mean that for external predicates and functions we lift the restriction made in BLD that each function and predicate has a unique assigned arity. Those schemata for which we allow this syntactic sugar, appear in the same box. 
Received on Thursday, 29 January 2009 20:47:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:34:00 GMT