Work

Trait-oriented programming in Java 8

Year: 2014
Type: conference-paper
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 these interfaces: 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.
Institution: University of Turin
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W2021222186
FWCI: 1.404
Cites: 13
Cited by: 22
Related to: 9