[plt-dev] Match and for

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Wed Jul 29 10:55:48 EDT 2009

I write stuff like this a lot:

(for ([s (in-list shapes)])
  (match s

I would love to write

(for ([(struct rect (i x y h w)) (in-list shapes)])

with some annotation.

There is an obvious hack macro... but can anyone think of a good way
that scales with the many for forms and sequence types etc?


Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the dev mailing list.