On 04/07/2012 15:54, Wolfgang Laun wrote:
On 4 July 2012 16:15, Mark Proctor <mproctor(a)codehaus.org
<mailto:mproctor@codehaus.org>> wrote:
Btw I'm not sure what you mean by "alternatives" here, I suspect that
will confuse others too:
The 'case' phrases are not alternatives, but 'break' is available to
terminate the switch CE after a match
I was trying to say that 'switch' doesn't select at most one of its
'case' phrases
unless you use 'break'. Matching more than one 'case' is possible,
resulting
in multiple activations, similar to 'or'.
Agreed maybe "match"
would be a better word. It is in the spirit of
pattern matching in erlang and scala.
Mark
I'll clarify.
-W
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev