Redesigning with Traits: the Nile Stream trait-based Library - Archive ouverte HAL
Communication Dans Un Congrès Année : 2007

Redesigning with Traits: the Nile Stream trait-based Library

Résumé

Recently, traits have been proposed as a single inheritance backward compatible solution in which the composing entity has the control over the trait composition. Traits are fine-grained units used to compose classes, while avoiding many of the problems of multiple inheritance and mixin-based approaches. To evaluate the expressiveness of traits, some hierarchies were refactored, showing code reuse. However, such large refactorings, while valuable, may not be facing all the problems, since the hierarchies were previously expressed within single inheritance and following certain patterns. We wanted to evaluate how traits enable reuse, and what problems could be encountered when building a library using traits from scratch, taking into account that traits are units of reuse. This paper presents our work on designing a new stream library named Nile. We present the reuse that we attained using traits, and the problems we encountered

Domaines

Autre [cs.OH]
Fichier principal
Vignette du fichier
CDW0.pdf (398.66 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-00306163 , version 1 (25-07-2008)

Identifiants

Citer

Damien Cassou, Roel Wuyts, Stéphane Ducasse. Redesigning with Traits: the Nile Stream trait-based Library. Proceedings of the 2007 International Conference on Dynamic Languages (ICDL 2007), Aug 2007, Lugano, Switzerland. pp.50-79, ⟨10.1145/1352678.1352682⟩. ⟨hal-00306163⟩
220 Consultations
167 Téléchargements

Altmetric

Partager

More