I'm beginning to start with the Shen language, it looks really good.
I attempted to write some Peano arithmetic with Shen, but the
following start of the definition of the + (plus) predicate produces
the error message "arity error". What is wrong?
The first note about Shen: The error messages could perhaps be more
detailed and informative.
------------------------------------------------------------
// Sum:
(defprolog plus
0 0 0 <-- ; // Base case: 0 = 0 + 0
Sum 0 Sum <-- ; // Null element: Sum = 0 + Sum
Sum Sum 0 <-- ;) // Null element, commutative
// Sum = Sum + 0
------------------------------------------------------------
regards, Dr AJY
Helsinki, Finland