[racket] Using Futures

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Wed Jul 28 17:12:24 EDT 2010

On Wed, Jul 28, 2010 at 1:44 PM, Matthias Felleisen
<matthias at ccs.neu.edu> wrote:
>
> (Nothing about futures. But may I recommend a nice and simple 'optimization':
>
>  (cond
>    [(= 1 (length values)) ...]
>
> adds quite some complexity to a recursive function over a list.
> I'd use
>
>  (empty? (rest values))
>
> instead.

This breaks on `null'.
-- 
sam th
samth at ccs.neu.edu


Posted on the users mailing list.