Hostname: page-component-77f85d65b8-8wtlm Total loading time: 0 Render date: 2026-03-29T00:20:06.337Z Has data issue: false hasContentIssue false

First-class patterns

Published online by Cambridge University Press:  01 March 2009

BARRY JAY
Affiliation:
University of Technology, Sydney, Australia (e-mail: cbj@it.uts.edu.au)
DELIA KESNER
Affiliation:
PPS, CNRS and Université Paris Diderot, Paris, France (e-mail: kesner@pps.jussieu.fr)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Pure pattern calculus supports pattern-matching functions in which patterns are first-class citizens that can be passed as parameters, evaluated and returned as results. This new expressive power supports two new forms of polymorphism. Path polymorphism allows recursive functions to traverse arbitrary data structures. Pattern polymorphism allows patterns to be treated as parameters which may be collected from various sources or generated from training data. A general framework for pattern calculi is developed. It supports a proof of confluence that is parameterised by the nature of the matching algorithm, suitable for the pure pattern calculus and all other known pattern calculi.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2009
Submit a response

Discussions

No Discussions have been published for this article.