On 18 August 2011 18:38, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
We are looking to tighten up accumulate, using a new keyword to<br>
differentiate. It will use ; for separation, to follow a similar form to<br>
a &#39;for&#39; loop.<br>
<br>
acc( CE*;<br>
&lt;func&gt;*;<br>
&lt;guard&gt;? )<br>
<br>
so something like:<br>
<br>
acc( $o : Order();<br>
         $min : min( $o.value ),<br>
         $max : max($o.value);<br>
         $min &gt; 100 &amp;&amp; $max &lt; 100 )<br></blockquote><div><br>Given that I can do this today using an eval after the accumulate CE: What&#39;s the big gain, as compared to the nuisance of yet another CE, with the need to document (which, traditionally, isn&#39;t done so eagerly) and teach and learn and getting it free of bugs?<br>
<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I have wondered if we could use pipes on our functions, to be able to<br>
pass the results of one function into another - just not sure how that<br>
will work or look yet.<br>
func(...) in func(...)<br>
func(...) | func(...)<br>
<br>
Mark<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br>