> In a December 2004 reply posted on the forum, we see the script dan.clp
> (below).  We have observed that its pattern
>
>    (foo (data $?data&:(= (length$ $?data) 0)))
>
> can be rewritten more simply
>
>    (foo (data ))

Hi Jonathan,

This is an interesting point...since it was also my code :-D

Had I known then what I know now from studying Jess's implementation,
that Ernest actually tests the length of multislots as a condition of
the pattern matching process, I would have opted for your shorter
code.  At the time, it seemed logical enough.

My contention is that shortcuts are great if you understand their
mechanics, else they introduce an unknown liability in your code.
Cheers,
Jason

-----------------------------------------------------
Morris Technical Solutions LLC
www.morristechnicalsolutions.com
[EMAIL PROTECTED]
phone/fax: 503.692.1088


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to