<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28045</bug_id>
          
          <creation_ts>2015-02-18 13:45:19 +0000</creation_ts>
          <short_desc>Higher order function feature - list of supported functions</short_desc>
          <delta_ts>2015-07-16 15:50:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>SGI</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Priscilla Walmsley">pwalmsley</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>andrew_coleman</cc>
    
    <cc>john.snelson</cc>
    
    <cc>josh.spiegel</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118003</commentid>
    <comment_count>0</comment_count>
    <who name="Priscilla Walmsley">pwalmsley</who>
    <bug_when>2015-02-18 13:45:19 +0000</bug_when>
    <thetext>Section 5.2.6 says &quot;If an implementation provides the Higher-Order Function Feature, then it must provide fn:function-lookup, fn:function-name, fn:function-arity, fn:for-each, fn:filter, fn:fold-left, fn:fold-right, and fn:for-each-pair.&quot;

Should this list also include new 3.1 functions that use higher-order functions, such as fn:apply, array:filter, array:fold-left, array:fold-right, array:for-each, array:for-each-pair, map:for-each?

Also, should the 2-argument versions of fn:sort and array:sort be included?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118707</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2015-03-20 11:02:15 +0000</bug_when>
    <thetext>The Working Group discussed this bug at the teleconference on 2015-03-17 and agreed to add these functions to the list as you suggest.

Many thanks for reviewing the documents and raising this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121792</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-06 09:21:44 +0000</bug_when>
    <thetext>The change has been applied as agreed. However, there are other functions that need to be included in the list, for example fn:random-number-generator.

I propose that we don&apos;t try to enumerate the affected functions here, but instead label affected functions in F+O as having a dependency on this feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121922</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-09 18:05:52 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #2)
&gt; The change has been applied as agreed. However, there are other functions
&gt; that need to be included in the list, for example fn:random-number-generator.
&gt; 
&gt; I propose that we don&apos;t try to enumerate the affected functions here, but
&gt; instead label affected functions in F+O as having a dependency on this
&gt; feature.

I agree that we should not enumerate these functions in XQuery. 

But labelling functions as dependent on the feature doesn&apos;t mean that they have to be implemented, which was the intent here.  I&apos;d prefer to have a list of functions, maintained in F&amp;O, that I can point to from XQuery&apos;s conformance section.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121923</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-09 20:31:33 +0000</bug_when>
    <thetext>Perhaps we should try to defined the affected functions intensionally, e.g.: any function whose signature includes an argument or result whose declared type is a SequenceType that contains a FunctionTest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121924</commentid>
    <comment_count>5</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2015-07-09 21:09:32 +0000</bug_when>
    <thetext>fn:load-xquery-module should probably be in the list but I think it escapes your criteria.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121927</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-09 22:03:11 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #4)
&gt; Perhaps we should try to defined the affected functions intensionally, e.g.:
&gt; any function whose signature includes an argument or result whose declared
&gt; type is a SequenceType that contains a FunctionTest.

Any reason not to generate that list in the F&amp;O specification, adding in fn:load-xquery-module?

It would be nice to have a list to link to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122151</commentid>
    <comment_count>7</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2015-07-16 15:50:17 +0000</bug_when>
    <thetext>This has been resolved under bug 28810.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28810</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>