Skip to main content

Blog Archive for cayhorstmann during April 2007

The Dual Role of return Many programming languages get along just fine without a return statement. In Pascal, for example, the return value is assigned to a dummy variable whose name equals the name of the function. function foo(arg: integer): integer;begin   (* compute return value *)   foo := retval;   (* maybe some more cleanup *)end; In Scheme,...
I teach a graduate programming languages class at San Jose State University. In order to inject some topics of current interest, I had a lab about closures and the competing closure proposals for Java 7. I got an email from Neal Gafter: “Hey, it's really cool to see your reference to BGGA in a SJSU lab assignment!” I asked if he could give a talk at the department...