<?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>29989</bug_id>
          
          <creation_ts>2016-11-07 06:52:08 +0000</creation_ts>
          <short_desc>[XQ31] CurlyArrayConstructor does not use EnclosedExpr</short_desc>
          <delta_ts>2016-11-11 14:32:58 +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>PC</rep_platform>
          <op_sys>Linux</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="Reece H. Dunn">msclrhd</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>andrew_coleman</cc>
    
    <cc>jmdyck</cc>
    
    <cc>josh.spiegel</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>128093</commentid>
    <comment_count>0</comment_count>
    <who name="Reece H. Dunn">msclrhd</who>
    <bug_when>2016-11-07 06:52:08 +0000</bug_when>
    <thetext>The XQuery 3.1 EBNF grammar contains:

[176]   	CurlyArrayConstructor	   ::=   	&quot;array&quot; &quot;{&quot; Expr? &quot;}&quot;

However, other constructs of this form have been converted to use EnclosedExpr. This construct should be converted to:

[176]   	CurlyArrayConstructor	   ::=   	&quot;array&quot; EnclosedExpr

Unless there was a reason for not using EnclosedExpr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128098</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2016-11-07 17:53:12 +0000</bug_when>
    <thetext>Related history:

At meeting #621:
  https://lists.w3.org/Archives/Public/public-xsl-query/2015Oct/0071.html
I was given action item 621-03 &quot;to update the grammar for empty expressions in braces&quot; (as outlined in the accompanying decision).

In this message:
  https://lists.w3.org/Archives/Public/public-xsl-query/2015Nov/0001.html
I reported what I&apos;d done to complete the action item, and (at the very bottom) said:
     Also, in
         CurlyArrayConstructor
     I did NOT change
         &quot;{&quot; Expr? &quot;}&quot;
     because it wasn&apos;t in the list of expressions to &apos;consider&apos;,
     despite that it presumably has the &quot;{} means {()}&quot; semantics.
     (I say &quot;presumably&quot; because I don&apos;t think the spec actually defines
     the meaning of &quot;array {}&quot;.)

My message came up at meeting #622:
  https://lists.w3.org/Archives/Public/public-xsl-query/2015Nov/0011.html
but the minutes don&apos;t say (and I don&apos;t recall) whether we considered the point about CurlyArrayConstructor. (It looks like the quote above was the last time that CurlyArrayConstructor was mentioned in public-xsl-query.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128101</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-11-07 18:40:55 +0000</bug_when>
    <thetext>
So, there are really two independent problems:

(1) Use EnclosedExpr in the CurlyArrayConstructor production (editorial?)
(2) Make explicit that array{} is the same as array{()}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128102</commentid>
    <comment_count>3</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-11-07 18:49:24 +0000</bug_when>
    <thetext>Actually, doing (1) takes care of (2).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128154</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-11-11 13:56:12 +0000</bug_when>
    <thetext>The WG decided to adopt the resolution described in comment #2.
Action A-660-08 raised to track this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128157</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2016-11-11 14:32:58 +0000</bug_when>
    <thetext>I have change the grammars for XPath 3.1 and XQuery 3.1 as suggested in comment #0.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>