[rules-dev] accumulate to acc - Don't call it acc(umulate)

Wolfgang Laun wolfgang.laun at gmail.com
Mon Aug 22 06:55:05 EDT 2011


On 22 August 2011 12:28, Mark Proctor <mproctor at codehaus.org> wrote:

>  On 22/08/2011 09:18, Geoffrey De Smet wrote:
>
> I am not against adding new features to the language. (*)
> But don't call it "acc" or "accumulate", that will just confuse everyone.
>
> The other keyword being discussed is 'for'.
>
> Once 'for' is in place 'accumulate' will be removed from the documentation,
> or atleast relegated t a deprecate stage, so it's only there for backwards
> comptability.
>
> There are two thingies now using "accumulate": the accumulate *phrase* and
the accumulate *conditional element.*

The accumulate phrase:

   - must follow "from"
   - may contain inline code (init, action, result)
   - may have a single accumulate function call

The accumulate CE

   - can be used in combination with a pattern, "not", "exists", "eval" and
   "forall".
   - may *not *contain inline code
   - may have more than one accumulate function call

So it seems that "accumulate" is going to stay, at least for the phrase. If
"for" is then used for the extended accumulate CE, there'll be "for" and
"forall".

-W
*


*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110822/8936d9dd/attachment.html 


More information about the rules-dev mailing list