Closed jasonhemann closed 3 years ago
@michaelballantyne yes that's better in that the error message is better formatted.
In this example, it feels like the user would want the error reported at the inner-most conde
expression. Right now a small, local error will be reported at the largest enclosing minikanren-ee macro, and that makes it unfortunately difficult to track down.
@jasonhemann I think you're expecting the wrong error! The first-encountered problem with this program is that it uses conde
(a goal syntax) inside define
(a Racket, not miniKanren, context).
If you fix your program to use define-relation I think you'll get the error you're looking for.
Oh! Yes! Great!
E.g.
Lets me know that I made a mistake as follows:
It would be nicer for minikanren-ee to pinpoint the mistake for the user.