Adding Traits to (Statically Typed) Languages

Nierstrasz, Oscar; Ducasse, Stéphane; Reichhart, Stefan; Schärli, Nathanael (2005). Adding Traits to (Statically Typed) Languages Universität Bern, Switzerland: Universität Bern

[img]
Preview
Text
Nier05gTraitsCSharp.pdf - Published Version
Available under License BORIS Standard License.

Download (467kB) | Preview

Traits offer a fine-grained mechanism for composing classes in object-oriented languages from reusable components, while avoiding the fragility problems introduced by multiple inheritance and mixins. Although traits were developed in the context of dynamically typed languages, they would also offer clear benefits for statically typed languages like Java and C#. This report summarizes the issues raised when integrating traits into such languages. We examine traits in the context of the statically typed languages FeatherweightJava, C# and C++.

Item Type:

Report (Report)

Division/Institute:

08 Faculty of Science > Institute of Computer Science (INF)
08 Faculty of Science > Institute of Computer Science (INF) > Software Composition Group (SCG) [discontinued]

UniBE Contributor:

Nierstrasz, Oscar, Ducasse, Stephane, Reichhart, Stefan

Subjects:

000 Computer science, knowledge & systems
500 Science > 510 Mathematics

Publisher:

Universität Bern

Language:

English

Submitter:

Anja Ebeling

Date Deposited:

30 Oct 2017 08:36

Last Modified:

11 Apr 2024 16:11

BORIS DOI:

10.7892/boris.104673

URI:

https://boris.unibe.ch/id/eprint/104673

Actions (login required)

Edit item Edit item
Provide Feedback