[racket] Typed Racket and macros expanding to for*:

From: Neil Toronto (neil.toronto at gmail.com)
Date: Tue Jul 24 15:17:32 EDT 2012

On 07/24/2012 08:18 AM, Vincent St-Amour wrote:
> At Tue, 24 Jul 2012 11:11:01 -0400,
> Matthias Felleisen wrote:
>> This kills an infinite or a large-number-of-iterations loop that the
>> programmer may have tried to specify with the for:-clauses.
>
> It does, but isn't it the point? Once the matrix is full, iteration
> should stop.

That sounds right. It should behave like for/vector with a #:length clause:

     #lang racket
     (for/vector #:length 10 ([i  (in-range 20)]) i)

=>  '#(0 1 2 3 4 5 6 7 8 9)

Neil ⊥


Posted on the users mailing list.