loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Paper Unlock

Authors: Andreas Svendsen 1 and Birger Mller-Pedersen 2

Affiliations: 1 SINTEF; University of Oslo, Norway ; 2 University of Oslo, Norway

Keyword(s): Traits, statically typed languages, generics, templates, virtual types.

Related Ontology Subjects/Areas/Topics: Languages and Compilers ; Object-Oriented Programming ; Programming Languages ; Software Engineering

Abstract: Traits have been proposed as a code reuse mechanism for dynamically typed languages. The paper addresses the issues that come up when introducing traits in statically typed languages, such as Java. These issues can be resolved by introducing generic traits, but at some cost. The paper studies three different generic mechanisms: Java Generics, Templates and Virtual Types, by implementing them all by a preprocessor to Java. The three different approaches are tested by a number of examples. Based on this, the paper gives a first answer to which of the three generic mechanisms that are most adequate.

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 3.136.97.64

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:
Svendsen, A. and Mller-Pedersen, B. (2008). GENERIC TRAITS IN STATICALLY TYPED LANGUAGES - How to do It?. In Proceedings of the Third International Conference on Software and Data Technologies - Volume 1: ICSOFT; ISBN 978-989-8111-51-7; ISSN 2184-2833, SciTePress, pages 39-46. DOI: 10.5220/0001870700390046

@conference{icsoft08,
author={Andreas Svendsen. and Birger Mller{-}Pedersen.},
title={GENERIC TRAITS IN STATICALLY TYPED LANGUAGES - How to do It?},
booktitle={Proceedings of the Third International Conference on Software and Data Technologies - Volume 1: ICSOFT},
year={2008},
pages={39-46},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0001870700390046},
isbn={978-989-8111-51-7},
issn={2184-2833},
}

TY - CONF

JO - Proceedings of the Third International Conference on Software and Data Technologies - Volume 1: ICSOFT
TI - GENERIC TRAITS IN STATICALLY TYPED LANGUAGES - How to do It?
SN - 978-989-8111-51-7
IS - 2184-2833
AU - Svendsen, A.
AU - Mller-Pedersen, B.
PY - 2008
SP - 39
EP - 46
DO - 10.5220/0001870700390046
PB - SciTePress