Feature-Oriented Programming With Object Algebras

Abstract : Object algebras are a new programming technique that enables a simple solution to basic extensibility and modularity issues in programming languages. While object algebras excel at defining modular features, the composition mechanisms for object algebras (and features) are still cumbersome and limited in expressiveness. In this paper we leverage two well-studied type system features, intersection types and type-constructor polymorphism, to provide object algebras with expressive and practical composition mechanisms. Intersection types are used for defining expressive run-time composition operators (combinators) that produce objects with multiple (feature) interfaces. Type-constructor polymorphism enables generic interfaces for the various object algebra combinators. Such generic interfaces can be used as a type-safe front end for a generic implementation of the combinators based on reflection. Additionally, we also provide a modular mechanism to allow different forms of self-references in the presence of delegation-based combinators. The result is an expressive, type-safe, dynamic, delegation-based composition technique for object algebras, implemented in Scala, which effectively enables a form of Feature-Oriented Programming using object algebras.
Type de document :
Communication dans un congrès
Proceedings of the European Conference on Object-Oriented Programming (ECOOP, 2013), 2013, Unknown, France. pp.27-51, 2013, 〈10.1007/978-3-642-39038-8_2〉
Liste complète des métadonnées

https://hal.inria.fr/hal-00923387
Contributeur : Tijs Van Der Storm <>
Soumis le : jeudi 2 janvier 2014 - 17:06:03
Dernière modification le : samedi 10 juin 2017 - 01:06:20

Lien texte intégral

Identifiants

Collections

Citation

B. C. D. S. Oliveira, Tijs Van Der Storm, Alex Loh, William Cook. Feature-Oriented Programming With Object Algebras. Proceedings of the European Conference on Object-Oriented Programming (ECOOP, 2013), 2013, Unknown, France. pp.27-51, 2013, 〈10.1007/978-3-642-39038-8_2〉. 〈hal-00923387〉

Partager

Métriques

Consultations de la notice

175