Replies: 1 comment 1 reply
-
This could be an alternative syntax, but I wouldn't want to make it the only one. The current syntax is a lispification of Prolog Horn clauses, and so is somewhat natural (to those who know Prolog). But it wouldn't be hard to add optional markers like the ones you suggest, and if it would be helpful, we can do that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I propose a modification to the syntax of axioms, with the same goal as the proposed modifications to the syntax of methods: to make it clearer and less susceptible to errors.
I spent hours today debugging an axiom of the form
that was returning
?y
as?<tmp-name>
for no reason that I could see, only to find out that in the course of editing it, adding and removingprintln
statements, etc, the final conjuct(assign ?y ?<expr>)
had mistakenly ended up outside the(and (...))
.So something like a
:condition
,:cond
,:case
,:branch
, ... in front of each branch of the axiom would be very helpful.P.S. I now see that the problem also involves implicit conjuctions.
Beta Was this translation helpful? Give feedback.
All reactions