loading
Papers Papers/2022 Papers Papers/2022

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

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.

CC BY-NC-ND 4.0

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 18.118.7.85

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 - ICSOFT; ISBN 978-989-8565-19-8; ISSN 2184-2833, SciTePress, 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 - ICSOFT},
year={2012},
pages={363-372},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0004027503630372},
isbn={978-989-8565-19-8},
issn={2184-2833},
}

TY - CONF

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