[racket-dev] for behavior with empty sequence

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Sun Nov 7 19:13:26 EST 2010

Is this the right behavior for a `for' loop when no sequences are given?

-> (for () (printf "ok!\n"))
ok!
-> (for ([x (in-list (list))]) (printf "ok!\n"))
->

I would expect the body to occur 0 times.


Posted on the dev mailing list.