|
ABSTRACT
Pattern matching and data abstraction are important concepts in designing programs, but they do not fit well together. Pattern matching depends on making public a free data type representation, while data abstraction depends on hiding the representation. This paper proposes the views mechanism as a means of reconciling this conflict. A view allows any type to be viewed as a free data type, thus combining the clarity of pattern matching with the efficiency of data abstraction.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
 |
Aug84
|
|
| |
Aug85
|
|
 |
BD77
|
|
| |
Bir86
|
R.S. Bird. An introduction to the theory of lists. In Marktoberdory Workshop on Logics of ProgrammingI August 1985.
|
| |
BMS80
|
R. Buretall, D. MacQueen, and D. Sanella. Hope: An ezpe~/mental applicatiee lancua~c. Technical Report Report CSR-62-80, Edinburgh University, Computer Science Dept., 1980.
|
| |
Bur69
|
R.M. Bur~taU. Proving properties of programs by structural induction. The Comp~tter Journal, 12(1), February 1969.
|
 |
FGJM85
|
Kokichi Futatsugi , Joseph A. Goguen , Jean-Pierre Jouannaud , José Meseguer, Principles of OBJ2, Proceedings of the 12th ACM SIGACT-SIGPLAN symposium on Principles of programming languages, p.52-66, January 14-16, 1985, New Orleans, Louisiana, United States
[doi> 10.1145/318593.318610]
|
 |
FW86
|
|
 |
HK84
|
|
| |
Joh85
|
|
| |
Mee84
|
L. Meertene. Algorithmlcs: Towards programming as a mathematical activity. In J. W. de Bskker, et. al., editors, Mathematics and Competer Science, North-Holland, 1984.
|
| |
Pey87
|
S.L. Peyton-Jonee. Implementing Functional Languafes udng Graph Redttction. Prentice-Hall, 1987.
|
| |
SH82
|
M.R. Sleep and S. HolmetrBm. A short note concerning lazy reduction rules of append. Sofltvare Practice and Ezpcr/ence, 12(11):1082--4, November 1982.
|
 |
Tho86
|
|
| |
Tur81
|
D.A. Turner. Recuraion equatio~ as a programming language. In J. Darlington, P. Henderson, and D. Turner, editors, Fur, ction~l Procmmming and lt~ Applications, Cambridge University Press, 1981.
|
| |
Tur85
|
|
| |
Wad87
|
P.L. Wadler. Compiling pattera matching; Lkt comprehenalone. In {Peyg?}.
|
CITED BY 43
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shay Artzi , Michael D. Ernst, Using predicate fields in a highly flexible industrial control system, Companion to the 20th annual ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications, October 16-20, 2005, San Diego, CA, USA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Paul Hudak , John Hughes , Simon Peyton Jones , Philip Wadler, A history of Haskell: being lazy with class, Proceedings of the third ACM SIGPLAN conference on History of programming languages, p.12-1-12-55, June 09-10, 2007, San Diego, California
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|