<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed Jun 19 12:58:46 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/LOGIC-55/LOGIC-55.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>[LOGIC-55] Unification of sets allows for duplicate values leading to non-set-like behavior</title>
                <link>http://dev.clojure.org/jira/browse/LOGIC-55</link>
                <project id="10020" key="LOGIC">core.logic</project>
                        <description>&lt;p&gt;Considering this behavior:&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; (run* [out] (== 3 out) (== #{3 out} #{3 out}))
(3)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There are other more convoluted cases involving multiple lvars but I think the above is enough for discussion. I think the above behavior is at least unexpected (desiring documentation) if not actually incorrect behavior.&lt;/p&gt;

&lt;p&gt;A possible solution would be to apply &lt;tt&gt;distincto&lt;/tt&gt; (or some equivalent) to the members of each incoming set before the body of unify-with-set (extending &lt;tt&gt;IUnifyWithSet&lt;/tt&gt; to &lt;tt&gt;clojure.lang.IPersistentSet&lt;/tt&gt;). Naturally this makes set unification even more expensive than it currently is but I&apos;m currently inclined to think that this additional cost is unavoidable, at least with the current approach.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15711">LOGIC-55</key>
            <summary>Unification of sets allows for duplicate values leading to non-set-like behavior</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="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="dnolen">David Nolen</assignee>
                                <reporter username="abrooks">Aaron Brooks</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Sep 2012 15:03:18 -0500</created>
                <updated>Thu, 27 Sep 2012 21:38:47 -0500</updated>
                    <resolved>Thu, 27 Sep 2012 21:38:47 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="29518" author="dnolen" created="Fri, 21 Sep 2012 15:19:00 -0500"  >&lt;p&gt;I probably should held off on implementing unification with sets. Oh well. The distincto approach sounds reasonable to me - would gladly take a patch.&lt;/p&gt;</comment>
                    <comment id="29519" author="abrooks" created="Fri, 21 Sep 2012 15:22:32 -0500"  >&lt;p&gt;I&apos;ll look in to that. Would you be against declaring &lt;tt&gt;distincto&lt;/tt&gt; so I can use it earlier in the file? I don&apos;t recall off the top of my head but I think &lt;tt&gt;distincto&lt;/tt&gt; can&apos;t be moved that early in the file and probably wants to stay where it is anyways.&lt;/p&gt;</comment>
                    <comment id="29540" author="dnolen" created="Thu, 27 Sep 2012 21:38:47 -0500"  >&lt;p&gt;fixed, &lt;a href=&quot;http://github.com/clojure/core.logic/commit/cdc4bf8563e9f566cc6e3e0e4f8a7735cd92b88e&quot;&gt;http://github.com/clojure/core.logic/commit/cdc4bf8563e9f566cc6e3e0e4f8a7735cd92b88e&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>