[racket-dev] `cond' / `when' / `unless' / etc bodies

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Oct 11 19:10:53 EDT 2010

Yesterday, Robby Findler wrote:
> 
> Maybe you're saying that people would be confused by that error?
> Woudln't that already happen with
> 
> (define (foo x) (define x (add1 x)) x)
> 
> ?

Yes, they would.  I just think that overall more newbies fall for the
trap of trying a conditional definition, so making it work (in a few
more cases) might be confusing.  In any case, I still like to have
this feature -- I just mentioned the above to be fair.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the dev mailing list.