Lazy Types: Automating Dynamic Strategy Selection

  • Authors:
  • Fernando Berzal;Juan-Carlos Cubero;Nicolas Marin;Maria-Amparo Vila

  • Affiliations:
  • University of Granada;University of Granada;University of Granada;University of Granada

  • Venue:
  • IEEE Software
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Programmers increasingly must deal with data that's not easy to represent, complex by nature, and affected by structural irregularities. This article overviews how the reflective technique of lazy typing--deferring the exact definition of object methods until the latest possible moment--can help programmers more easily and consistently deal with partial or incomplete data. From a behavioral point of view, lazy types provide more flexibility than conventional types by dynamically selecting implementation strategies. Practically speaking, lazy types reduce the coding complexity and maintenance effort required in those situations where standard type modeling falls short.