Skip to main content

General Features of Logic Programming Languages

  • Chapter
  • First Online:
  • 2892 Accesses

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

Abstract

We have already discussed two approaches to programming: the imperative and the functional programming paradigms. If we had to single out one major difference between functional and imperative programs, we could perhaps say that functional programs are concerned with what needs to be computed whereas imperative programs specify how to compute it.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    In some versions of Prolog the word prolog is reserved, therefore to run this example you might need to replace prolog by myprolog for instance.

  2. 2.

    The predicate append is predefined in most Prolog implementations.

References

  1. J.A. Robinson, A machine-oriented logic based on the resolution principle. J. ACM 12(1), 23–41 (1965)

    Google Scholar 

  2. P. Roussel, PROLOG: Manuel de référence et d’utilisation. Research report, Artificial Intelligence Team, University of Aix-Marseille, France, 1975

    Google Scholar 

  3. C.J. Hogger, Introduction to Logic Programming. APIC Studies in Data Processing. Academic Press, Massachusetts, 1984

    Google Scholar 

  4. W.F. Clocksin, C.S. Mellish, Programming in Prolog. 4th edn. (Springer, Heidelberg, 1994)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Maribel Fernández .

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer-Verlag London

About this chapter

Cite this chapter

Fernández, M. (2014). General Features of Logic Programming Languages. In: Programming Languages and Operational Semantics. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-6368-8_7

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-6368-8_7

  • Published:

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-6367-1

  • Online ISBN: 978-1-4471-6368-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics