google / mangle

Apache License 2.0
1.07k stars 38 forks source link

Nicer error message when a predicate is referenced with wrong arity #30

Open burakemir opened 8 months ago

burakemir commented 8 months ago

When a rule body refers to predicate foo(X1,...,Xn) but foo has arity m != n, the error message currently says "could not find predicate".

It would be nicer to check whether there is a predicate with the same name, and suggest to use it.