SCALA ROLES - A Lightweight Approach towards Reusable Collaborations

Michael Pradel, Martin Odersky

2008

Abstract

Purely class-based implementations of object-oriented software are often inappropriate for reuse. In contrast, the notion of objects playing roles in a collaboration has been proven to be a valuable reuse abstraction. However, existing solutions to enable role-based programming tend to require vast extensions of the underlying programming language, and thus, are difficult to use in every day work. We present a programming technique, based on dynamic proxies, that allows to augment an object’s type at runtime while preserving strong static type safety. It enables role-based implementations that lead to more reuse and better separation of concerns.

Download


Paper Citation


in Harvard Style

Pradel M. and Odersky M. (2008). SCALA ROLES - A Lightweight Approach towards Reusable Collaborations . In Proceedings of the Third International Conference on Software and Data Technologies - Volume 1: ICSOFT, ISBN 978-989-8111-51-7, pages 13-20. DOI: 10.5220/0001873700130020

in Bibtex Style

@conference{icsoft08,
author={Michael Pradel and Martin Odersky},
title={SCALA ROLES - A Lightweight Approach towards Reusable Collaborations},
booktitle={Proceedings of the Third International Conference on Software and Data Technologies - Volume 1: ICSOFT,},
year={2008},
pages={13-20},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0001873700130020},
isbn={978-989-8111-51-7},
}


in EndNote Style

TY - CONF
JO - Proceedings of the Third International Conference on Software and Data Technologies - Volume 1: ICSOFT,
TI - SCALA ROLES - A Lightweight Approach towards Reusable Collaborations
SN - 978-989-8111-51-7
AU - Pradel M.
AU - Odersky M.
PY - 2008
SP - 13
EP - 20
DO - 10.5220/0001873700130020