A plea for a readable Prolog programming style

  • Authors:
  • R. McLaughlin

  • Affiliations:
  • PRA, Inc., 8~27 Leesburg Pike, Suite 700, Vienna VA

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1990

Quantified Score

Hi-index 0.00

Visualization

Abstract

Prolog is not like most computer languages. In Prolog a particular action can bring forth many results. This means special care must be taken when writing code. Not only must the code meet standards of readability but it must also allow us to understand the process by which the coder intended inferences to take place.Prolog use a set of rules based on pure logic to make inferences from a set of data. In general, there is no telling how many items will satisfy the set of rules we have contrived. It is from this that both the power and danger of Prolog come.I will attempt to discuss ways in which Prolog programs can be written to improve maintenance and debugging. I will also try to discuss limitations of the language.