Trait-oriented Programming in Java 8
Document type :
Communication dans un congrès avec actes
Title :
Trait-oriented Programming in Java 8
Author(s) :
Bono, Viviana [Auteur correspondant]
Dipartimento di Informatica [Torino]
Mensa, Enrico [Auteur]
Naddeo, Marco [Auteur]
Analyses and Languages Constructs for Object-Oriented Application Evolution [RMOD]
Dipartimento di Informatica [Torino]
Dipartimento di Informatica [Torino]
Mensa, Enrico [Auteur]
Naddeo, Marco [Auteur]
Analyses and Languages Constructs for Object-Oriented Application Evolution [RMOD]
Dipartimento di Informatica [Torino]
Conference title :
PPPJ'14: International Conference on Principles and Practices of Programming on the Java Platform: virtual machines, languages, and tools
City :
Cracow
Country :
Pologne
Start date of the conference :
2014-09-23
Publication date :
2014
English keyword(s) :
Java 8
default method
trait
programming pattern
code modularity
default method
trait
programming pattern
code modularity
HAL domain(s) :
Informatique [cs]/Langage de programmation [cs.PL]
English abstract : [en]
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 ...
Show more >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.Show less >
Show more >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.Show less >
Language :
Anglais
Peer reviewed article :
Oui
Audience :
Internationale
Popular science :
Non
Collections :
Source :
Files
- https://hal.inria.fr/hal-01026531/document
- Open access
- Access the document
- https://hal.inria.fr/hal-01026531/document
- Open access
- Access the document
- document
- Open access
- Access the document
- mainPPPJ14.pdf
- Open access
- Access the document
- document
- Open access
- Access the document
- mainPPPJ14.pdf
- Open access
- Access the document