[racket] Problem with case

From: Danny Yoo (dyoo at hashcollision.org)
Date: Tue Sep 18 17:29:08 EDT 2012

>
> I'd like to see a discussion of the tradeoffs between cond & case & match
> and how each is best used.


Hi Joe,

I treat 'cond' as the general, all-purpose conditional branching
thing, and it's my primary tool.  I use the other two if the
conditions I'm testing against fit their shapes.  If I'm pattern
matching against structures, then I use 'match', and if I'm matching
against single pieces of literal data, like characters or symbols,
then I pick up 'case'.


I think 'case' is supposed to have good performance compared to the
other two, due to work by Jon Zeppieri
(http://lists.racket-lang.org/dev/archive//2012-July/010036.html).

Posted on the users mailing list.