<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 13:15:07 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-394/CLJ-394.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-394] Add marker Interfaces for defrecords and deftypes plus boolean test fns</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-394</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;Sometimes one would like to know if an object is an instance of a deftype or a defrecord.&lt;br/&gt;
Add (possibly empty) marker Interfaces that allow an efficient test, plus test fns&lt;br/&gt;
&apos;record?&apos; and &apos;deftype?&apos;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13791">CLJ-394</key>
            <summary>Add marker Interfaces for defrecords and deftypes plus boolean test fns</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="1" iconUrl="http://dev.clojure.org/jira/images/icons/status_open.gif">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="importer">Assembla Importer</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Jul 2010 09:58:00 -0500</created>
                <updated>Fri, 1 Mar 2013 09:41:09 -0600</updated>
                                                    <fixVersion>Release 1.6</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="24084" author="importer" created="Tue, 24 Aug 2010 00:04:00 -0500"  >&lt;p&gt;Converted from &lt;a href=&quot;http://www.assembla.com/spaces/clojure/tickets/394&quot;&gt;http://www.assembla.com/spaces/clojure/tickets/394&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="28193" author="steveminer@gmail.com" created="Fri, 20 Apr 2012 13:55:05 -0500"  >&lt;p&gt;As of Clojure 1.3, there are marker interfaces named clojure.lang.IType and clojure.lang.IRecord.  You can use instance? with those interfaces.  I&apos;m not sure if they&apos;re actually documented for public use, but they seem to work as expected in 1.3 and 1.4.  If you want record?, you can try this:&lt;/p&gt;

&lt;p&gt;(defn record? &lt;span class=&quot;error&quot;&gt;&amp;#91;rec&amp;#93;&lt;/span&gt; (instance? clojure.lang.IRecord rec))&lt;/p&gt;</comment>
                    <comment id="29734" author="devn" created="Sat, 20 Oct 2012 18:38:30 -0500"  >&lt;p&gt;See attached code and test. I&apos;m unsure as to whether or not the location of the tests and predicates make sense. Please let me know if I should move them elsewhere.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11590" name="clj-394-add-predicates-for-type-and-record.diff" size="2391" author="devn" created="Sat, 20 Oct 2012 18:38:30 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <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>