[racket] Interesting article

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Wed Aug 11 22:40:45 EDT 2010

On Wed, Aug 11, 2010 at 8:25 PM, Shriram Krishnamurthi <sk at cs.brown.edu> wrote:
> - The for... forms remind me too much of do.  There just don't seem to
> be primitives with the simplicity of map/filter/fold for sequences.
> Perhaps I'm missing them.

Personally, I find the `for' macros more concise, except when there's
already a function that I would pass to `map' etc.   Compare:

(for/list ([x e]) (f x))
(map (lambda (x) (f x)) e)

I think the bigger problem from a datatype-genericity point of view is
that sequences don't have enough operations (sequence-ref,
sequence-set, etc).
sam th
samth at ccs.neu.edu

Posted on the users mailing list.