[rules-dev] feature request: undo-then

Greg Barton greg_barton at yahoo.com
Wed Feb 18 20:25:18 EST 2009


--- On Wed, 2/18/09, Geoffrey De Smet <ge0ffrey.spam at gmail.com> wrote:

> The current workarounds [to undo-then] are clunky:
> - Writing an negative (opposite) rule isn't efficient:
> it means declaring the rule twice effectively. Also the
> negative rule is usually using lots of or's and
> not's which isn't fast.

This would be made easier by...drum roll please...the else clause! :)

Now, if there was the else clause plus undo-then/closures you could probably write an entire complex ruleset in one rule.  Might as well just use perl, then. :P 


      



More information about the rules-dev mailing list