On Sat, Jan 6, 2018 at 8:02 AM, Eyob <[email protected]> wrote:

Hi,
>
> we have this from the opencog examaples
>
> from opencog.scheme_wrapper import load_scm, scheme_eval, scheme_eval_h
>
> When to use scheme_eval_h and when to use scheme_eval?
>

scheme_eval_h returns an atom. Always.
scheme_eval returns a string.

I try to tell people to never-ever use scheme_eval, but they don't listen.

There is also scheme_eval_tv which returns a truth value.  Someday, we need
to merge these, since  both truth values and atoms are special-cases of the
same object (a value).

--linas


-- 
*"The problem is not that artificial intelligence will get too smart and
take over the world," computer scientist Pedro Domingos writes, "the
problem is that it's too stupid and already has." *

-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/CAHrUA36_ytavyYbtWNBQMAohwCQHwuOrH5qy8rXaGZk%2BUpuOmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to