The worst error message is a silent failure...
Here's one:
Given a java class named "Disbelief" with a boolean property called "really":
(defrule jess-rules
(Disbelief (really FASLE))
=>
)
The parser doesn't detect that the misspelled FASLE (FALSE) will never match.
Also, I've seen the parser ignore extra characters on a line after a closing ")", for example:
(deffunction test (?args)
(bind ?hello (new String "hello world")) ignored text
(printout t ?hello)
)
However,
(deffunction test (?args)
(bind ?hello (new String "hello world")) ?notignored
(printout t ?hello)
)
Results in a parse error on ?notignored = "No such variable notignored."
alan
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, July 07, 2004 8:37 AM
> To: Jess Mailing List
> Subject: JESS: Least favorite error messages
>
>
> Hi Folks,
>
> Work progresses on Jess 7. I'm making a sweep through the
> code looking at error messages, in particular looking for
> ones that are hard to understand. I'd love it if people could
> help me by sharing small snippets of code that evoke Jess
> error messages that don't make sense or seem inappropriate --
> especially parser errors that don't point to the real source
> of a problem. You can post them here or just send them
> directly to me. Speaking up now guarantees that there will be
> improvements!
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Science and Engineering PSEs Phone: (925) 294-2154
> Sandia National Labs FAX: (925) 294-2234
> PO Box 969, MS 9012 [EMAIL PROTECTED]
> Livermore, CA 94550 http://herzberg.ca.sandia.gov
>
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
>
