On 22 August 2011 12:28, Mark Proctor <mproctor(a)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
*
*