Default Rules for Curry
Published In
Lecture Notes in Computer Science
Document Type
Citation
Publication Date
1-9-2016
Abstract
In functional logic programs, rules are applicable independently of textual order, i.e., any rule can potentially be used to evaluate an expression. This is similar to logic languages and contrary to functional languages, e.g., Haskell enforces a strict sequential interpretation of rules. However, in some situations it is convenient to express alternatives by means of compact default rules. Although default rules are often used in functional programs, the non-deterministic nature of functional logic programs does not allow to directly transfer this concept from functional to functional logic languages in a meaningful way. In this paper we propose a new concept of default rules for Curry that supports a programming style similar to functional programming while preserving the core properties of functional logic programming, i.e., completeness, non-determinism, and logic-oriented uses of functions. We discuss the basic concept and sketch an initial implementation of it which exploits advanced features of functional logic languages.
Locate the Document
DOI
10.1007/978-3-319-28228-2_5
Persistent Identifier
http://archives.pdx.edu/ds/psu/19004
Citation Details
Antoy, S., & Hanus, M. (2016, January). Default rules for Curry. In International Symposium on Practical Aspects of Declarative Languages (pp. 65-82). Springer International Publishing.