[rules-users] Can I reuse eval output?

Mark Proctor mproctor at codehaus.org
Tue Dec 11 03:33:57 EST 2007


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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>   




More information about the rules-users mailing list