<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 18/08/2011 18:17, Wolfgang Laun wrote:
<blockquote
cite="mid:CANaj1Lci559-3LBKUT_HNhh8k6gVRnCs-X2QWmeZr537oEDH0w@mail.gmail.com"
type="cite">On 18 August 2011 18:38, Mark Proctor <span dir="ltr"><<a
moz-do-not-send="true" 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>
</div>
</div>
</blockquote>
I find the above looks cleaner and easier to read, the more we can
reduce the need for 'eval' the better. It is a common enough use
case that I feel it is worth support. Acc is used a lot for CEP use
cases and we need a syntax that can compete succinctly with
alternative approaches - if we look like a dog dinner, we'll lose
out to alternative CEP syntaxes. The separation of the segments
using ";" gives a clearer distinction too, and it's 'for' loop like
nature should more natural to people new to the engine.<br>
<br>
Mark<br>
<blockquote
cite="mid:CANaj1Lci559-3LBKUT_HNhh8k6gVRnCs-X2QWmeZr537oEDH0w@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div>
<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 moz-do-not-send="true"
href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>