Levi's Lisp Log

Thoughts and links relating to Lisp and computer theory

Iterators a Sign of Weakness

I'm currently taking a Java class in school. It's a pretty basic class, but I have a new perspective on it now that I'm familiar with a larger range of languages. When we discussed anonymous inner classes, I immediately recognized them as closures. I was anxious to find just what you could accomplish with them, so I did a bit of research online. First, I found a wiki page describing an implementation of Smalltalk-like code blocks in Java. These are cool, but syntactically awkward in Java. Via that page, I found a very interesting essay regarding Iterator objects, and how they are a sign of a weakness in a language. Finally, I came across a Koan regarding the similarity of objects and closures.

# Posted by: Levi at 1:45 PM on Friday, May 27, 2005
   Comments: (0) Categories: Java Smalltalk Lisp
<< 1 >>