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, Java generics, C++ templates.

Related Ontology Subjects/Areas/Topics: Programming Languages ; Software Engineering

Abstract: By abstracting over types, generic programming enables one to write code that is independent from specific data type implementation. This style is supported by most mainstream languages, including C++ with templates and Java with generics. If some code is not designed in a generic way from the start, a major effort is required to convert this code to use generic types. This conversion is manually realized which is known to be tedious and error-prone. We propose Reverse Generics, a general linguistic mechanism to define a generic class from a non-generic class. For a given set of types, a generic is formed by unbinding static dependencies contained in these types. This generalization and generic type instantiation may be done incrementally. This paper studies the possible application of this linguistic mechanism to C++ and Java and, in particular, it reviews limitations of Java generics against our proposal.

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.217.32.71

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. (2009). REVERSE GENERICS - Parametrization after the Fact. In Proceedings of the 4th International Conference on Software and Data Technologies - Volume 1: ICSOFT; ISBN 978-989-674-009-2; ISSN 2184-2833, SciTePress, pages 39-46. DOI: 10.5220/0002252700390046

@conference{icsoft09,
author={Alexandre Bergel. and Lorenzo Bettini.},
title={REVERSE GENERICS - Parametrization after the Fact},
booktitle={Proceedings of the 4th International Conference on Software and Data Technologies - Volume 1: ICSOFT},
year={2009},
pages={39-46},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0002252700390046},
isbn={978-989-674-009-2},
issn={2184-2833},
}

TY - CONF

JO - Proceedings of the 4th International Conference on Software and Data Technologies - Volume 1: ICSOFT
TI - REVERSE GENERICS - Parametrization after the Fact
SN - 978-989-674-009-2
IS - 2184-2833
AU - Bergel, A.
AU - Bettini, L.
PY - 2009
SP - 39
EP - 46
DO - 10.5220/0002252700390046
PB - SciTePress