On Mon, Mar 25, 2013 at 02:13:10PM +0100, Jörg F. Wittenberger wrote:
> Hm, the example is stripped down from some argument parsing.
> 
> Given N many bindings, wouldn't it be it a bit expensive to
> unroll the simple case-dispatch into N eq?-Tests?  Let alone
> that the code would become quite unreadable.  (Though this
> could eventually be handled by macro expansion.)

You can just put the case statement in the do loop, on the
place where I put the if statement.  Just let it cons in all the
cases, but use the list as-is in the ELSE clause.

Cheers,
Peter
-- 
http://www.more-magic.net

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to