Laziness without all the hard work: combining lazy and strict languages for teaching

  • Authors:
  • Eli Barzilay;John Clements

  • Affiliations:
  • Northeastern University;California Polytechnic State University

  • Venue:
  • Proceedings of the 2005 workshop on Functional and declarative programming in education
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Students have trouble understanding the difference between lazy and strict programming. It is difficult to compare the two directly, because popular strict languages and popular lazy languages differ in their syntax, in their type systems, and in other ways unrelated to the lazy/strict evaluation discipline.While teaching programming languages courses, we have discovered that an extension to PLT Scheme allows the system to accommodate both lazy and strict evaluation in the same system. Moreover, the extension is simple and transparent. Finally, the simple nature of the extension means that the resulting system provides a rich environment for both lazy and strict programs without modification.