[racket] a little macro exercise

From: Justin Zamora (justin at zamora.com)
Date: Sat Oct 9 20:43:18 EDT 2010

On Sat, Oct 9, 2010 at 8:00 PM, David Herman <dherman at ccs.neu.edu> wrote:
> Ah, yes, I didn't see Carl's solution, which is pleasantly concise and particularly nice because of the single case.
> But I still think the point about fall-through is important to the performance model of `switch' -- it's what Duff's Device relies on, for example.

Duff's Device also relies on the fact that C's "case" keyword is
really a label used as a jump target .  This lets the switch jump into
the middle of an expression.  I don't think any of the solutions
posted so far could be used to implement Duff's Device.


Posted on the users mailing list.