[prev in list] [next in list] [prev in thread] [next in thread] 

List:       racket-dev
Subject:    [racket-dev] An Improvement to for/set
From:       danking () ccs ! neu ! edu (Daniel King)
Date:       2012-02-20 14:03:25
Message-ID: CAEJz2tN5Gtt6fUCKT2pCQLndh-2G8ykSPaL=mfzkX05dQHph8g () mail ! gmail ! com
[Download RAW message or body]

On Sun, Feb 19, 2012 at 22:20, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
> for/set sounds and looks more uniform with the rest of the loops, no?

I disagree, I think for/union is a natural analogue for for/product
and for/sum. Both for/union and for/set should be in the set library.

> union you can throw in as a function or for/fold.

I found that I use for/union often enough that it's worth writing a
for/union macro instead of rewriting the same for/fold boilerplate
code every time. However, I'm not sure that I understand what you're
suggesting here.

-- 
Dan King
College of Computer and Information Science
Northeastern University

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic