Guy L. Steele, Jr.

Summary

Guy L. Steele, Jr. Lambda: The Ultimate Imperative (1976)

As as example of the use of an escape expression, consider this procedure to compute the harmonic mean of an array of numbers. If any of the numbers is zero, we want the answer to be zero. We have a function harmsum which will sum the reciprocals of numbers in an array, or call an escape function with zero if any of the numbers is zero. (The implementation shown here is awkward because ALGOL requires that a function return its value by assignment.)
Source: Wikisource

Guy L. Steele, Jr. Lambda: The Ultimate Imperative (1976)

Introduction We catalogue a number of common programming constructs. For each construct we examine "typical" usage in well-known programming languages, and then capture the essence of the semantics of the construct in terms of a common meta-language.
The lambda calculus {Note Alonzowins} is often used as such a meta-language. Lambda calculus offers clean semantics, but it is clumsy because it was designed to be a minimal language rather than a convenient one. All lambda calculus "functions" must take exactly one "argument"
Source: Wikisource

Guy L. Steele, Jr. Lambda: The Ultimate Imperative (1976)

Iteration There are many other ways to compute factorial. One important way is through the use of iteration.
A common iterative construct is the DO loop. The most general form we have seen in any programming language is the MacLISP DO [Moon 74] . It permits the simultaneous initialization of any number of control variables and the simultaneous stepping of these variables by arbitrary functions at each iteration step.
Source: Wikisource

Get perspective with Kwize: daily news enlightened by great literature