Re: Storing data and code in a Db with LISP-like interface

From: x <x_at_not-exists.org>
Date: Fri, 28 Apr 2006 13:11:24 +0300
Message-ID: <e2splr$pa1$1_at_emma.aioe.org>


"Alvin Ryder" <alvin321_at_telstra.com> wrote in message news:1146094447.260458.63810_at_v46g2000cwv.googlegroups.com...
> Markus Triska wrote:
> > Hi,
> >
> > Nick Malik [Microsoft] wrote:
> >
> > >
> > > Believe it or not, in Prolog, it is a bit tougher to ask: what are all
the
> > > fruits that John likes,
> >
> > It's still fairly trivial:
> >
>
> You're both right.

> Nick's point is correct, pure prolog does not answer those types of
> questions, it only deals with first-order logic and that's a second
> order question, which requires predicates themselves, like "likes", to
> become arguments.

You can use both terms and predicates for likes(). If you have *not* you can define something like *findall* for a small number of terms/predicates like *likes*.
You can use a Prolog variant (like Goedel) and metaprogramming. Received on Fri Apr 28 2006 - 12:11:24 CEST

Original text of this message