[racket] Using Futures
[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