Arjun Dhar wrote:
Hi,
I've learned the use of eval() is not efficient, but it cannot be avoided in many cases.

However, using temporary variables I tried:

when
 $tmp: eval(...)
 ($tmp == false) or (eval(...))
Then
 ...
end


The above doers not compile; is there an alternative to reduce the number of evals by reusing their output?
no
Another question is, is tehre something wrong in the above definition from a declarative programming point of view?
its not idea - but sometimes over use of eval can't be helped - only you know the answer to that, being your domain model expert.
Thanks,
Arjun

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to