<!-- 
RSS generated by JIRA (4.4#649-r158309) at Tue May 21 21:20:23 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/CLJ-1140/CLJ-1140.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[CLJ-1140] {:as x} destructuring with an empty list raises exception</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-1140</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;user=&amp;gt; (clojure-version)
&quot;1.4.0&quot;
user=&amp;gt; (let [{:as x} &apos;()] x)
{}

...

user=&amp;gt; (clojure-version)
&quot;1.5.0-RC1&quot;
user=&amp;gt; (let [{:as x} &apos;()] x)
IllegalArgumentException No value supplied for key: null  clojure.lang.PersistentHashMap.create (PersistentHashMap.java:77)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The bug was introduced by a change&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; to support duplicate keys in map&lt;br/&gt;
destructuring. Using PersistentHashMap/create here introduces the above&lt;br/&gt;
bug, since it does not properly handle empty lists.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: &lt;a href=&quot;https://github.com/clojure/clojure/commit/93c795fe10ee5c92a36b6ec6373b3c80a31135c4&quot;&gt;https://github.com/clojure/clojure/commit/93c795fe10ee5c92a36b6ec6373b3c80a31135c4&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15932">CLJ-1140</key>
            <summary>{:as x} destructuring with an empty list raises exception</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="tcrawley">Toby Crawley</reporter>
                        <labels>
                    </labels>
                <created>Sun, 30 Dec 2012 13:35:52 -0600</created>
                <updated>Fri, 1 Mar 2013 09:49:21 -0600</updated>
                    <resolved>Fri, 1 Feb 2013 13:12:17 -0600</resolved>
                            <version>Release 1.5</version>
                                <fixVersion>Release 1.5</fixVersion>
                                        <due></due>
                    <votes>3</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="30357" author="tcrawley" created="Wed, 2 Jan 2013 11:02:40 -0600"  >&lt;p&gt;There&apos;s been some discussion on clojure-dev around this issue: &lt;a href=&quot;https://groups.google.com/d/topic/clojure-dev/qdDRNfEVfQ8/discussion&quot;&gt;https://groups.google.com/d/topic/clojure-dev/qdDRNfEVfQ8/discussion&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="30522" author="tcrawley" created="Fri, 1 Feb 2013 10:05:07 -0600"  >&lt;p&gt;An issue I brought up in the email thread is consistency: vector binding works with anything nthable, map binding works with anything associative. With my current patch (empty-list-destructuring-&lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJ-1140&quot; title=&quot;{:as x} destructuring with an empty list raises exception&quot;&gt;&lt;del&gt;CLJ-1140&lt;/del&gt;&lt;/a&gt;-12.30.12.diff), only ISeqs are supported for kwarg map binding. &lt;/p&gt;

&lt;p&gt;I&apos;d prefer it work with anything seqable, and can provide a patch that does that. I would go ahead and do so, but now that this ticket is now Approval: OK, I didn&apos;t want to alter what had been OK&apos;ed. Let me know if you want a patch that adds support for anything seqable.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11782" name="empty-list-destructuring-CLJ-1140-12.30.12.diff" size="1645" author="tcrawley" created="Sun, 30 Dec 2012 13:40:54 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Approval</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10007">Ok</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10002">Code and Test</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                        </customfields>
    </item>
</channel>
</rss>