Adding polymorphic tuples and lists to the syntax of Java

  • Authors:
  • Nattawut Sridranop;Ryan Stansifer

  • Affiliations:
  • Florida Institute of Technology, Melbourne, Florida;Florida Institute of Technology, Melbourne, Florida

  • Venue:
  • ACM-SE 42 Proceedings of the 42nd annual Southeast regional conference
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

Java does not provide built-in methods for constructing and accessing tuples and lists. In other programming languages, especially functional languages, these data structures are an integral part of the language. In fact, programming without tuples and lists is inconceivable in these languages.This paper will discuss a method for adding these capabilities to Java. We propose a syntax for tuples and lists that fits in with the existing Java syntax. We define a semantics for the new constructs based on simple Java 1.4 and 1.5 classes. We describe our implementation of a source level translation for the extended language to Java.