<?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>21128</bug_id>
          
          <creation_ts>2013-02-26 16:44:38 +0000</creation_ts>
          <short_desc>[XT30] map() reserved name</short_desc>
          <delta_ts>2013-05-11 08:45:02 +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>Functions and Operators 3.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</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="Tim Mills">tim</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>adam</cc>
    
    <cc>jonathan.robie</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>83737</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-02-26 16:44:38 +0000</bug_when>
    <thetext>If map() is a type, it will presumably find its way onto the list of reserved function names in XPath (and XQuery).  This is unfortunate given the existence of the function fn:map.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86357</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-04-18 16:55:00 +0000</bug_when>
    <thetext>The XSL WG reviewed this and considered that there is a strong case for changing the name of the fn:map() function, and would recommend fn:for-each as an alternative name. This is a late change to 3.0 but we feel it is the best way forward.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86566</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-04-23 16:04:07 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The XSL WG reviewed this and considered that there is a strong case for
&gt; changing the name of the fn:map() function, and would recommend fn:for-each
&gt; as an alternative name. This is a late change to 3.0 but we feel it is the
&gt; best way forward.

I would support this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86588</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Retter">adam</who>
    <bug_when>2013-04-23 17:48:36 +0000</bug_when>
    <thetext>I would also like to raise a question about the order of the arguments to the function, which could be dealt with at the same time as a potential rename of the function - https://www.w3.org/Bugs/Public/show_bug.cgi?id=21797</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87558</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-05-11 08:45:02 +0000</bug_when>
    <thetext>The WGs decided in meeting #538:

DECISION: J4.2.5: fn:map will be renamed to fn:for-each and
fn:map-pairs will be renamed to fn:for-each-pair.

Subsequently in meeting #539, the WGs made a decision on the related bug #21797:

Voted for changing order of arguments.  The sequence argument will come first.  The function argument will be last in all 5 higher order functions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>