🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2875

bug or feature?

#2875
From: finin
Date: Thu, 19 Nov 1987 21:16
25 lines
1825 bytes
Is it a bug or a feature for a logic programming language to allow one
to assert multiple copies of a clause into the database?

I'm studying various ways to extend Prolog's simple model of the
database (e.g. a flat, global collections of clauses) to a richer
hierarchical one with inheritance.  I am trying to decide whether to
allow multiple instances of a clause in a resulting database view.

Most Prolog implementations, at least those descendant from DEC-10
Prolog, allow the database to contain two identical clauses.  Most of
the non-Prolog logic programming languages that I am familiar with do
not.  I am interested in discovering what use, if any, people have
made of the ability to assert multiple copies of a clause into the
database.  

I have never found a use for this in practice.  In fact, it has only
been a source of bugs.  It is easy enough to accidentally get multiple
copies of a clause in the database in some Prolog implementations.
This can readily mess up your program in several ways unless you use a
rather pure logic programming style.

Has anyone out there found a good use for this Prolog "feature" of
allowing multiple copies of the identical clause in the database?

Tim
Technical Details
Message-ID: <3364@bigburd.PRC.Unisys.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!psuvax1!burdvax!bigburd!finin

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!psuvax1!burdvax!bigburd!finin
From: finin@bigburd.UUCP
Newsgroups: comp.lang.prolog
Subject: bug or feature?
Message-ID: <3364@bigburd.PRC.Unisys.COM>
Date: Thu, 19-Nov-87 16:16:00 EST
Article-I.D.: bigburd.3364
Posted: Thu Nov 19 16:16:00 1987
Date-Received: Sat, 21-Nov-87 18:06:06 EST
Sender: news@bigburd.PRC.Unisys.COM
Organization: Unisys Corporation, Paoli Research Center; Paoli, PA
Lines: 25
Keywords: database
Summary: multiple copies of a clause in the DB - usefull?