defrule vs deffunction

79 views
Skip to first unread message

Ahmed Abdeen Hamed

unread,
Jan 14, 2013, 5:49:47 PM1/14/13
to clip...@googlegroups.com
Hello,

Is there a rule of thumb on when you can use a deffunction in place of defrule or vice versa? I am very compfortable using deffunction and I can do almost everything using if then else. I am suspecting that this could also lead to performance issuez and I think defrule would be better. So, I am not sure what are the recommendations?

Thanks very much,

-Ahmed

CLIPS Support

unread,
May 4, 2013, 6:18:00 PM5/4/13
to clip...@googlegroups.com, ahmed....@gmail.com
If you find it easier to solve the problem using procedural code rather than rules, you're probably not solving a problem well suited for rules. 
Reply all
Reply to author
Forward
0 new messages