[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] can't get 'the' to work
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] can't get 'the' to work |
Date: |
Mon, 25 Mar 2013 14:16:05 +0100 |
User-agent: |
Mutt/1.4.2.3i |
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