loading
Documents

Research.Publish.Connect.

Paper

Paper Unlock

Authors: Alexandre Bergel 1 and Lorenzo Bettini 2

Affiliations: 1 University of Chile, Chile ; 2 Università di Torino, Italy

ISBN: 978-989-8565-19-8

Keyword(s): Generic Programming, Pharo, Dynamically Typed Languages.

Related Ontology Subjects/Areas/Topics: Aspects ; Modularity with Aspects ; Paradigm Trends ; Software Engineering

Abstract: Generic programming is a mechanism for re-using code by abstracting specific types used in classes and programs. In this paper, we present a mechanism for adding generic programming in dynamically typed languages, showing how programmers can benefit from generic programming. Furthermore, we enhance the expressiveness of generic programming with reverse generics, a mechanism for automatically deriving new generic code starting from existing non-generic one. We implemented generics and reverse generics in Pharo Smalltalk, and we successfully used them to solve a problem of reusing unit test cases. This helped us to identify a number of bugs and anomalies in the stream class hierarchy.

PDF ImageFull Text

Download
Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 54.158.199.217

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Bergel A. and Bettini L. (2012). Generics and Reverse Generics for Pharo.In Proceedings of the 7th International Conference on Software Paradigm Trends - Volume 1: ICSOFT, ISBN 978-989-8565-19-8, pages 363-372. DOI: 10.5220/0004027503630372

@conference{icsoft12,
author={Alexandre Bergel and Lorenzo Bettini},
title={Generics and Reverse Generics for Pharo},
booktitle={Proceedings of the 7th International Conference on Software Paradigm Trends - Volume 1: ICSOFT,},
year={2012},
pages={363-372},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0004027503630372},
isbn={978-989-8565-19-8},
}

TY - CONF

JO - Proceedings of the 7th International Conference on Software Paradigm Trends - Volume 1: ICSOFT,
TI - Generics and Reverse Generics for Pharo
SN - 978-989-8565-19-8
AU - Bergel A.
AU - Bettini L.
PY - 2012
SP - 363
EP - 372
DO - 10.5220/0004027503630372

Login or register to post comments.

Comments on this Paper: Be the first to review this paper.