What not to allow.

I'm trying to write all variants of Rules that I can think of that can have an effect on the Rete Network compilation. Mostly so that I can perform unit tests of the RuleCompiler, but also to let me think out loud about what should fail and raise an Exception.

So far, I'm raising an Exception if I find:
- rule definitions without variables
- LHS-expressions with no variables
- LHS-expressions that refer to free variables

There's probably more stuff I ought to "forbid" but I'm sure I'll find out soon enough.

Inga kommentarer: