<!-- 
RSS generated by JIRA (4.4#649-r158309) at Mon May 20 12:05:03 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/CLJS-376/CLJS-376.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>[CLJS-376] `case` doesn&apos;t match quoted symbols</title>
                <link>http://dev.clojure.org/jira/browse/CLJS-376</link>
                <project id="10040" key="CLJS">ClojureScript</project>
                        <description>&lt;p&gt;It works fine in the Clojure 1.4.0 REPL:&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; (let [a &apos;a] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil &apos;&amp;amp; :amp :none))
:none
user=&amp;gt; (let [a &apos;&amp;amp;] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil &apos;&amp;amp; :amp :none))
:amp
user=&amp;gt; (let [a &apos;b] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil &apos;b :b :none))
:b&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But in the CLJS Rhino REPL this is what I see:&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;ClojureScript:cljs.user&amp;gt; (let [a &apos;a] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil &apos;&amp;amp; :amp :none))
:none
ClojureScript:cljs.user&amp;gt; (let [a &apos;&amp;amp;] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil &apos;&amp;amp; :amp :none))
:none
ClojureScript:cljs.user&amp;gt; (let [a &apos;b] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil &apos;b :b :none))
:none&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>ClojureScript</environment>
            <key id="15684">CLJS-376</key>
            <summary>`case` doesn&apos;t match quoted symbols</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="-1">Unassigned</assignee>
                                <reporter username="kumarshantanu">Shantanu Kumar</reporter>
                        <labels>
                        <label>bug</label>
                    </labels>
                <created>Fri, 7 Sep 2012 12:28:50 -0500</created>
                <updated>Fri, 7 Sep 2012 16:49:37 -0500</updated>
                    <resolved>Fri, 7 Sep 2012 16:49:37 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="29402" author="dnolen" created="Fri, 7 Sep 2012 16:48:46 -0500"  >&lt;p&gt;This did reveal a bug though the ticket description does have a user error. The tests for case can only be literals - you should not quote the test values. For example the following is how symbols should be tested:&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;(let [a &apos;&amp;amp;] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil &amp;amp; :amp :none))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The above code that quotes the test is actually equivalent to:&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;(let [a &apos;&amp;amp;] (&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; a nil :nil (quote &amp;amp;) :amp :none))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which happens to work but probably isn&apos;t intended.&lt;/p&gt;

&lt;p&gt;With the coming patch CLJS now works as Clojure.&lt;/p&gt;</comment>
                    <comment id="29403" author="dnolen" created="Fri, 7 Sep 2012 16:49:37 -0500"  >&lt;p&gt;Fixed, &lt;a href=&quot;http://github.com/clojure/clojurescript/commit/c8e301a9b058f81bb599026a07f97ccdf4441730&quot;&gt;http://github.com/clojure/clojurescript/commit/c8e301a9b058f81bb599026a07f97ccdf4441730&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>