Traits in CSharp Stefan Reichhart Software Composition Group, Univeity of Bern, Switzerland Abstract. Traits are a well-known simple, but powerful compositional model for reuse. Although traits already implemented in dynamically typed languages, they’re not yet practically realized in statically typed languages. Typing traits and adapting the model to these languages is more complex to achieve. We report on our experience and practical re- search implementing traits in CSharp 2.0, concerning generics. We show the difficulties and possible solutio of typing and parameterizing traits in generally, possible enhancements for statically typed languages as well as adapting traits to CSharp regarding features like overriding and hid- ing.
thanks to Nathanael Schaerli for support on traits and Smalltalk, and Ha Beck for help on CSharp pae 2 Stefan Reichhart 1 Introduction The main focus of this work is on identifying interesting and important aspects of introducing traits to CSharp. We also identify required and optional features for statically typed languages as well as conflict situatio. The implementation presented in this paper is a simple
Popularity: 3% [?]
RSS feed for comments on this post · TrackBack URI
Leave a reply