<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sun May 19 16:44:56 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-932/CLJ-932.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-932] contains? should throw exception on non-keyed collections</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-932</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;The &lt;tt&gt;contains?&lt;/tt&gt; function, given a collection which is not an associative (Map, Set, String, array), returns false instead of throwing an exception.&lt;/p&gt;

&lt;p&gt;This is a subject of confusion when people call &lt;tt&gt;contains?&lt;/tt&gt; on sequential collections like lists, and on associative collections which do not implement the &lt;tt&gt;Associative&lt;/tt&gt; interface.&lt;/p&gt;

&lt;p&gt;Other predicates, such as &lt;tt&gt;even?&lt;/tt&gt;, throw an exception when passed arguments of an invalid type.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15229">CLJ-932</key>
            <summary>contains? should throw exception on non-keyed collections</summary>
                <type id="4" iconUrl="http://dev.clojure.org/jira/images/icons/improvement.gif">Enhancement</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="stuart.sierra">Stuart Sierra</assignee>
                                <reporter username="stuart.sierra">Stuart Sierra</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Feb 2012 15:19:20 -0600</created>
                <updated>Sat, 18 Aug 2012 07:50:41 -0500</updated>
                    <resolved>Sat, 18 Aug 2012 07:50:41 -0500</resolved>
                                            <fixVersion>Release 1.5</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="27759" author="stuart.sierra" created="Fri, 17 Feb 2012 15:30:57 -0600"  >&lt;p&gt;Patch adds fix, adds some tests, and removes tests reflecting the old behavior.&lt;/p&gt;</comment>
                    <comment id="29178" author="aaron" created="Wed, 15 Aug 2012 12:31:03 -0500"  >&lt;p&gt;This seems to be working properly, but what about vectors?&lt;/p&gt;

&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;(contains? [1 2 3] 3)
;-&amp;gt; false
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="29179" author="jafingerhut" created="Wed, 15 Aug 2012 12:40:46 -0500"  >&lt;p&gt;The doc string for contains? covers the vector and Java array case explicitly.  I&apos;m not saying that this behavior shouldn&apos;t change, but at least it is well documented what it currently does in these cases.&lt;/p&gt;</comment>
                    <comment id="29182" author="aaron" created="Wed, 15 Aug 2012 14:03:53 -0500"  >&lt;p&gt;Agreed. I just want to make sure that we are still ok with this functionality given that things are changing. Are there others (Stuart) that want to chime in here and make the intentions clear? If this is good then I would consider this screened and ready.&lt;/p&gt;</comment>
                    <comment id="29185" author="stuart.sierra" created="Wed, 15 Aug 2012 14:40:02 -0500"  >&lt;p&gt;Vector is Associative, so supporting &lt;tt&gt;contains?&lt;/tt&gt; is valid even if it does not do what people might expect:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;user=&amp;gt; (contains? [:a :b :c] 2)
&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
user=&amp;gt; (contains? [:a :b :c] 7)
&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;All I&apos;m trying to change here is have &lt;tt&gt;contains?&lt;/tt&gt; throw an exception if the argument is &lt;b&gt;not&lt;/b&gt; Associative. The current behavior (returning false) was hiding a bug in my code.&lt;/p&gt;

&lt;p&gt;I do not consider this a breaking change. I believe the docstring of &lt;tt&gt;contains?&lt;/tt&gt; leaves room for this interpretation, but Rich will have the final say.&lt;/p&gt;</comment>
                    <comment id="29187" author="aaron" created="Wed, 15 Aug 2012 14:42:30 -0500"  >&lt;p&gt;Perfect. I just wanted to make sure that this was intended.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10921" name="CLJ-932-0001.patch" size="1809" author="stuart.sierra" created="Fri, 17 Feb 2012 15:30:57 -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>