Predicated Generic Functions: Enabling Context-Dependent Method Dispatch

Authors
Jorge Vallejos, Sebastián González, Pascal Costanza, Wolfgang De Meuter, Theo D’Hondt, Kim Mens
Tags
, ,
Title
Predicated Generic Functions: Enabling Context-Dependent Method Dispatch
Authors
Jorge Vallejos, Sebastián González, Pascal Costanza, Wolfgang De Meuter, Theo D’Hondt, Kim Mens
 2010-sc.pdf Δ   161Kb   02 Oct 2011
Type
In Proceedings
Book title
SC'10: Proceedings of the 9th international conference on Software Composition
Series
Lecture Notes in Computer Science
Number
6144
Pages
66-81
Publisher
Springer-Verlag
Editor
Benôit Baudry, Eric Wohlstadter
Year
2010

Abstract

This paper presents predicated generic functions, a novel programming language abstraction that allows the expression of context-dependent 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 alleviating the limitations of existing method dispatching approaches. We have prototyped our proposal in Lambic, an extension of the standard CLOS. We illustrate and motivate our approach by discussing the implementation of a collaborative graphical editor.

Tags Tags: , ,


BibTeX Record
  @inproceedings{RELEASeD-2010-774350,
    title = {Predicated Generic Functions: Enabling Context-Dependent Method Dispatch},
    author = {Jorge Vallejos and Sebastián González and Pascal Costanza and Wolfgang {De Meuter} and Theo D’Hondt and Kim Mens},
    year = {2010},
    number = {6144},
    pages =  {66-81},
    booktitle = {SC'10: Proceedings of the 9th international conference on Software Composition},
    publisher = {Springer-Verlag},
    editor = {Benôit Baudry, Eric Wohlstadter},
    series = {Lecture Notes in Computer Science},
  }