Closed amebel closed 8 years ago
Functioning as designed; you can only call cog-reduce on reducible atoms.
Anyway, I've sort of decided that cog-reduce is maybe a bad idea, and should almost surely be removed or re-thought and re-designed. The general concept of reduction would be better handled by the URE, after writing some rules that know how to reduce things. Reducing a hand-full of arithmetic nodes in C++ code is ... a poor design choice.
To be clear, buy "reduce" I really mean this: https://en.wikipedia.org/wiki/Rewriting which is what the URE is supposed to be doing, in general.
running https://github.com/opencog/atomspace/blob/master/examples/guile/get-put.scm#L40