1 Aug 2002 05:53
Re: Lisp and Ruby
On Wednesday, July 31, 2002, at 04:44 PM, Louis Theran wrote: > Dylan seems to have just as many of the mapping and folding functions > as Lisp does. It also has this notion of an iteration protocol for > collections. I've always thought (though others should chime in to correct me) that the mapping functions in lisp are for working with lists as one's only or primary data representation - a common practice of lispers, especially in the early stages of exploratory programming. The iteration protocols of Dylan are more general, since <collection> has many subclasses, many of which will end up being used in the final version (whereas list representations may be gone at that point) As long as you specify an iteration protocol for your subclass of <collection>, you can use all the built in collection functions. By contrast, you can't use mapcar with arrays. This is what I should have expressed more clearly when I wrote "look at the DRM." Raffael Cavallaro, Ph.D. raffaelcavallaro@...
RSS Feed