Typing rule-based transformations over topological collections
Abstract
Pattern-matching programming is an example of a rule-based programming style developed in functional languages. This programming style is intensively used in dialects of ML but is restricted to algebraic data-types. This restriction limits the field of application. However, as shown by Giavitto and Michel at RULE'02, case-based function definitions can be extended to more general data structures called topological collections. We show in this paper that this extension retains the benefits of the typed discipline of the functional languages. More precisely, we show that topological collections and the rule-based definition of functions associated with them fit in a polytypic extension of mini-ML where type inference is still possible.
- Publication:
-
arXiv e-prints
- Pub Date:
- December 2009
- DOI:
- 10.48550/arXiv.0912.4877
- arXiv:
- arXiv:0912.4877
- Bibcode:
- 2009arXiv0912.4877C
- Keywords:
-
- Computer Science - Programming Languages
- E-Print:
- 4th International Workshop on Rule-Based Programming, Valencia : Spain (2003)