Article View: comp.lang.prolog
Article #2502Re: PROLOG comment style
From: Bruce T. Smith
Date: Sun, 07 Dec 1986 06:04
Date: Sun, 07 Dec 1986 06:04
17 lines
1246 bytes
1246 bytes
I like that kind of comment, too. In the Prolog systems I've used, they are only comments, so it's safe to extend it a bit. For example: 1) Give multiple specifications when appropriate. E.g., foo(+X,-Y) and foo(-X,+Y) might make sense for a clause, and are not the same as foo(?X,?Y). 2) For some patterns of instantiated variables a particular argument may be ignored. I use a prefix '_', like the anonymous variable. 3) Use types, e.g., foo(+Int,-Float). __________________________________________________________ Bruce T. Smith, UUCP: bsmith@iuvax 101 Lindley Hall CSnet: bsmith@indiana.edu Indiana University Phone: (812) 335-2566 Bloomington, IN 47405
Technical Details
Message-ID:
<2159@iuvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!cuae2!ihnp4!inuxc!iuvax!bsmithReferences:
<157@its63b.ed.ac.uk>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!cuae2!ihnp4!inuxc!iuvax!bsmith From: bsmith@iuvax.UUCP (Bruce T. Smith) Newsgroups: comp.lang.prolog Subject: Re: PROLOG comment style Message-ID: <2159@iuvax.UUCP> Date: Sun, 7-Dec-86 01:04:14 EST Article-I.D.: iuvax.2159 Posted: Sun Dec 7 01:04:14 1986 Date-Received: Sun, 7-Dec-86 20:58:14 EST References: <157@its63b.ed.ac.uk> Reply-To: bsmith@iuvax.UUCP (Bruce T. Smith) Organization: Indiana University, Bloomington Lines: 17