[racket] Using Futures

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Jul 28 17:31:25 EDT 2010

[I don't think he cares about (). See remark on protecting the function.]


On Jul 28, 2010, at 5:12 PM, Sam Tobin-Hochstadt wrote:

> 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.