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

"deterministic" indicator for external functions.

From: Daniel Engovatov <dengovatov@bea.com>
Date: Thu, 12 May 2005 19:14:25 -0700
Message-ID: <32D5845A745BFB429CBDBADA57CD41AF09FF7B7A@ussjex01.amer.bea.com>
To: <public-qt-comments@w3.org>, <w3c-xml-query-wg@w3.org>
We propose to add an optional clause to the external function
declaration to indicate whether the external function always returns the
same results for given argument values ("deterministic").


An example use case would be to allow users to indicate that two
external functions embedded into xquery: f:random() and
f:verySlowDeterministicExternalWebService() should be treated
differently by the query processor.


That can be implemented by changing FunctionDecl to


[26]    FunctionDecl    ::=    "declare" "function" QName "(" ParamList?
(")" | (")" "as" SequenceType)) (EnclosedExpr | ("external" (<"not"
"deterministic"> | "deterministic")?))


Received on Friday, 13 May 2005 02:14:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:05 UTC