Declarative language extensions for Prolog courses

Authors
Publication date 2008
Book title FDPE’08: Proceedings of the 2008 ACM SIGPLAN Workshop on Functional and Declarative Programming in Education
ISBN
  • 9781605580685
Event 2008 ACM SIGPLAN Workshop on Functional and Declarative Programming in Education (FDPE’08), Victoria, BC, Canada
Pages (from-to) 73-78
Publisher New York, NY: Association for Computing Machinery (ACM)
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
In this paper we present several extensions to support a more declarative view of programming in Prolog. These extensions enable introductory Prolog courses to concentrate on the pure parts of Prolog for longer periods than without. Even quite complex programs can now be written free of any reference to the more problematic constructs. Our extensions include an alternate way to handle the occurs-check, efficient side-effect free I/O with DCGs, and a uniform approach to integer arithmetic that overcomes the disadvantages of arithmetical evaluation and finite domain constraints, but combines and amplifies their strengths. All extensions have been included recently into the SWI-Prolog distribution.
Document type Conference contribution
Published at http://doi.acm.org/10.1145/1411260.1411271
Permalink to this page
Back