Wednesday, September 20, 2006

Iteration is Bad

Does it ever make sense to iterate through unordered collections? An unordered collection is precisely that, unordered, so what is the point of iterating through it? Iterating through adds complexity and bloat to code and limits expressiveness. It implies order where none exists. Yes, at some level, deep down in the machine, there must exist order, but exposing this to the programmer is pointless. Hopefully someday we'll have real live closures in ObjC, but until then, I'll be trying out some of the Higher Order Messaging frameworks that exist. Perhaps soon I'll write about why I think closures may have benefits over HOM.