<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sun May 19 14:37:54 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/ALGOM-1/ALGOM-1.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>[ALGOM-1] Add conditionals stratements to domonad forms</title>
                <link>http://dev.clojure.org/jira/browse/ALGOM-1</link>
                <project id="10072" key="ALGOM">algo.monads</project>
                        <description>&lt;p&gt;I implemented a patch that would allow us to do conditionals on domonad macros&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;    (domonad monad-m&lt;br/&gt;
      [a (action 1)&lt;br/&gt;
       :if (= a 3)&lt;br/&gt;
       :then [&lt;br/&gt;
         result (action c)&lt;br/&gt;
       ]&lt;br/&gt;
       :else [&lt;br/&gt;
         result (action d)&lt;br/&gt;
       ]]&lt;br/&gt;
      result)&lt;/p&gt;

&lt;p&gt;Conditional blocks can be nested. &lt;/p&gt;

&lt;p&gt;One gotcha one has to be aware of is: you may use bindings from a conditional branch in the m-result sexp as long as that branch gets called, given that one doesn&apos;t know for sure which branch is going to be called, you should set the same bindings on both branches.&lt;/p&gt;

&lt;p&gt;The patch code is on: github.com/roman/algo.monads &lt;/p&gt;

&lt;p&gt;I didn&apos;t do a pull request given that you need to this first.&lt;/p&gt;

&lt;p&gt;NOTE: I&apos;ve added this feature in some other projects I&apos;ve been working on (parser combinators) and is working perfectly so far, there is tests in the patch but I wanted to give you that safe net as well. &lt;/p&gt;</description>
                <environment>The extension was developed in Mac OS X Lion</environment>
            <key id="15100">ALGOM-1</key>
            <summary>Add conditionals stratements to domonad forms</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</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="khinsen">Konrad Hinsen</assignee>
                                <reporter username="roman">Roman Gonzalez</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jan 2012 16:28:39 -0600</created>
                <updated>Tue, 10 Jan 2012 00:28:35 -0600</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="27521" author="roman" created="Tue, 10 Jan 2012 00:28:35 -0600"  >&lt;p&gt;Adding support for monadic conditionals on the domonad macro&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10763" name="monadic-if-else.diff" size="42175" author="roman" created="Tue, 10 Jan 2012 00:28:35 -0600" />
                </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="10001">Code</customfieldvalue>

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