Traits: Experience with a Language Feature. Murphy-Hill, E. & Black, A. P. In Companion to the 19th Annual ACM SIGPLAN Conference on Object-Oriented Programming Systems, Languages, and Applications (OOPSLA), Practitioner Report, of OOPSLA '04, pages 275–282, New York, NY, USA, 2004. ACM.
Traits: Experience with a Language Feature [pdf]Paper  doi  abstract   bibtex   1 download  
This paper reports our experiences using traits, collections of pure methods designed to promote reuse and understandability in object-oriented programs. Traits had previously been used to refactor the Smalltalk collection hierarchy, but only by the creators of traits themselves. This experience report represents the first independent test of these language features. Murphy-Hill implemented a substantialmulti-class data structure called ropes that makes significant use of traits. We found that traits improved understandability and reduced the number of methods that needed to be written by 46%.

Downloads: 1