A type system for reflective program generators

  • Authors:
  • Christof Lutteroth;Dirk Draheim;Gerald Weber

  • Affiliations:
  • Department of Computer Science, The University of Auckland, 38 Princes Street, Auckland 1020, New Zealand;Central Information Technology Services, University of Innsbruck, Technikerstrasse 23, 6020 Innsbruck, Austria;Department of Computer Science, The University of Auckland, 38 Princes Street, Auckland 1020, New Zealand

  • Venue:
  • Science of Computer Programming
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We describe a type system for a generative mechanism that generalizes the concept of generic types by combining it with a controlled form of reflection. This mechanism makes many code generation tasks possible for which generic types alone would be insufficient. The power of code generation features are carefully balanced with their safety, which enables us to perform static type checks on generator code. This leads to a generalized notion of type safety for generators.