On 18 August 2011 18:38, Mark Proctor <span dir="ltr"><<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></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 'for' loop.<br>
<br>
acc( CE*;<br>
<func>*;<br>
<guard>? )<br>
<br>
so something like:<br>
<br>
acc( $o : Order();<br>
$min : min( $o.value ),<br>
$max : max($o.value);<br>
$min > 100 && $max < 100 )<br></blockquote><div><br>Given that I can do this today using an eval after the accumulate CE: What's the big gain, as compared to the nuisance of yet another CE, with the need to document (which, traditionally, isn'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>