Predicated generic functions: enabling context-dependent method dispatch

Vallejos, Jorge;Gonzalez Montesinos, Sebastian Andres;Costanza, Pascal;De Meuter, Wolfgang;Mens, Kim;et.al.
(2010) Interational Conference on software composition 2010 — Location: Malaga, Spain (1.July.2010)

Files

Predicated.pdf
  • Restricted Access
  • Adobe PDF
  • 161.13 KB

Details

Authors
  • Vallejos, JorgeVrije Universiteit Brussel
    author
  • Gonzalez Montesinos, Sebastian AndresUCLouvain
    author
  • Costanza, PascalVrije Universiteit Brussel
    author
  • De Meuter, WolfgangVrije Universiteit Brussel
    author
  • Mens, Kimorcid-logoUCLouvain
    author
Show more
Abstract
This paper presents predicated generic functions, a novel programming language abstraction that allows the expression of contextdependent behaviour in a declarative and modular manner, providing fine-grained control of method applicability and method specificity. Methods are guarded by predicates with user-defined orderings, thereby increasing the expressiveness of existing method dispatching approaches. We have prototyped our proposal in Lambic, an extension of the standard Common Lisp Object System. We illustrate and motivate our approach by discussing the implementation of a collaborative graphical editor.
Affiliations

Citations

Vallejos, J., Gonzalez Montesinos, S. A., Costanza, P., De Meuter, W., D’Hondt, T., & Mens, K. (2010). Predicated generic functions: enabling context-dependent method dispatch. Proceedings of the 9th international conference on Software composition, 66-81. https://doi.org/10.1007/978-3-642-14046-4_5