Towards Typed Prolog

  • Tom Schrijvers
  • Vítor Santos Costa
  • Jan Wielemaker
  • Bart Demoen
Conference paper

DOI: 10.1007/978-3-540-89982-2_59

Part of the Lecture Notes in Computer Science book series (LNCS, volume 5366)
Cite this paper as:
Schrijvers T., Santos Costa V., Wielemaker J., Demoen B. (2008) Towards Typed Prolog. In: Garcia de la Banda M., Pontelli E. (eds) Logic Programming. ICLP 2008. Lecture Notes in Computer Science, vol 5366. Springer, Berlin, Heidelberg

Abstract

Prolog is traditionally not statically typed. Since the benefits of static typing are huge, it was decided to grow a portable type system inside two widely used open source Prolog systems: SWI-Prolog and Yap. This requires close cooperation and agreement between the two systems. The type system is Hindley-Milner. The main characteristics of the introduction of types in SWI and Yap are that typing is not mandatory, that typed and untyped code can be mixed, and that the type checker can insert dynamic type checks at the boundaries between typed and untyped code. The basic decisions and the current status of the Typed Prolog project are described, as well as the remaining tasks and problems to be solved.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  • Tom Schrijvers
    • 1
  • Vítor Santos Costa
    • 2
  • Jan Wielemaker
    • 3
  • Bart Demoen
    • 1
  1. 1.Department of Computer ScienceK.U.LeuvenBelgium
  2. 2.CRACS & FCUPUniversidade do PortoPortugal
  3. 3.HCSUniversity of AmsterdamThe Netherlands

Personalised recommendations