Translation correctness for first-order object-oriented pattern matching

1Citations
Citations of this article
9Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Pattern matching makes ML programs more concise and readable, and these qualities are also sought in object-oriented settings. However, objects and classes come with open class hierarchies, extensibility requirements and the need for data abstraction, which all conflict with matching on concrete data types. Extractor-based pattern matching has been proposed to address this conflict. Extractors are user-defined methods that perform the task of value discrimination and deconstruction during pattern matching. In this paper, we give the first formalization of extractor-based matching, using a first-order object-oriented calculus. We give a direct operational semantics and prove it sound. We then present an optimizing translation to a target language without matching, and prove a correctness result stating that an expression is equivalent to its translation. © Springer-Verlag Berlin Heidelberg 2007.

Cite

CITATION STYLE

APA

Emir, B., Qin, M., & Odersky, M. (2007). Translation correctness for first-order object-oriented pattern matching. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 4807 LNCS, pp. 54–70). Springer Verlag. https://doi.org/10.1007/978-3-540-76637-7_5

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free