DOI: 10.1007/978-0-387-09680-3_25
|View full text |Cite
|
Sign up to set email alerts
|

On Traits and Types in a Java-like Setting

Abstract: Both single and multiple class-based inheritance are often inappropriate as a reuse mechanism, because classes play two competing roles. Namely, a class is both a generator of instances and a unit of reuse. Traits are composable pure units of behavior reuse, consisting only of methods, that have been proposed as an add-on to single class-based inheritance in order to improve reuse. However, adopting traits as an add-on to traditional class-based inheritance is not enough: classes, besides their primary role of… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
59
0

Publication Types

Select...
4
2

Relationship

3
3

Authors

Journals

citations
Cited by 24 publications
(59 citation statements)
references
References 20 publications
0
59
0
Order By: Relevance
“…Initially they were introduced in a untyped setting as an extension of Smalltalk [22,46]. Later on they were studied also in typed (thus often restricted) settings [47,44,11,6]. One of the design goals of this approach was to overcome problems with mixins mentioned above.…”
Section: Limitations Of Composition Mechanismsmentioning
confidence: 99%
“…Initially they were introduced in a untyped setting as an extension of Smalltalk [22,46]. Later on they were studied also in typed (thus often restricted) settings [47,44,11,6]. One of the design goals of this approach was to overcome problems with mixins mentioned above.…”
Section: Limitations Of Composition Mechanismsmentioning
confidence: 99%
“…In the language considered in this paper a trait consists of methods, of required methods, which parametrize the behavior, and of required fields that can be directly accessed in the body of the methods, along the lines of [2,4]. Traits are building blocks to compose classes and other, more complex, traits.…”
Section: Motivating Examplementioning
confidence: 99%
“…The most important rule is (V-ANNOTATION), which guarantees that Constraint-based Ownership Typing for WBTJ. The constraint-based ownership type system for WBTJ can be understood as a refinement of the type system (for a Javalike calculus with traits) proposed in [4], to keep box and ownership annotations into account. The type-checking of each trait definition, in isolation from the classes or traits that use it, is realized by collecting, for each method definition in the trait, the constraints on the use of this within the method body.…”
Section: Fig 7 Accessibility Relationmentioning
confidence: 99%
See 1 more Smart Citation
“…It is a graph-like structure, so the disadvantages of the concept of configuration mentioned above are limited as a result. It is worth noticing here that there are two kinds of contexts: the static context, which helps to create static structures with well-defined responsibility (meta-models) [26,23,24,25]; and the dynamic context, which helps to enrich functionalities of the static structure [3,2,4]. This article is focused on the static contexts only.…”
Section: Introductionmentioning
confidence: 99%