Trait-oriented Programming in Java 8

Viviana Bono 1, * Enrico Mensa 2 Marco Naddeo 1, 3
* Auteur correspondant
2 Dipartimento di Informatica
Dipartimento di Informatica [Torino]
3 RMOD - Analyses and Languages Constructs for Object-Oriented Application Evolution
LIFL - Laboratoire d'Informatique Fondamentale de Lille, Inria Lille - Nord Europe
Abstract : Java 8 was released recently. Along with lambda expressions, a new language construct is introduced: default methods in interfaces. The intent of this feature is to allow interfaces to be extended over time preserving backward compatibility. In this paper, we show a possible, different use of interfaces with default methods: we introduce a trait-oriented programming style based on an interface-as- trait idea, with the aim of improving code modularity. Starting from the most common operators on traits, we introduce some programming patterns mimicking such operators and discuss this approach.
Type de document :
Communication dans un congrès
PPPJ'14: International Conference on Principles and Practices of Programming on the Java Platform: virtual machines, languages, and tools, Sep 2014, Cracow, Poland. 2014
Liste complète des métadonnées

Littérature citée [15 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01026531
Contributeur : Marco Naddeo <>
Soumis le : vendredi 22 août 2014 - 07:00:26
Dernière modification le : jeudi 11 janvier 2018 - 06:22:25
Document(s) archivé(s) le : lundi 24 novembre 2014 - 21:37:10

Fichier

mainPPPJ14.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01026531, version 1

Citation

Viviana Bono, Enrico Mensa, Marco Naddeo. Trait-oriented Programming in Java 8. PPPJ'14: International Conference on Principles and Practices of Programming on the Java Platform: virtual machines, languages, and tools, Sep 2014, Cracow, Poland. 2014. 〈hal-01026531〉

Partager

Métriques

Consultations de la notice

1315

Téléchargements de fichiers

1457