logo       

[plt-dev] Match and for: msg#00090

plt-dev

Subject: [plt-dev] Match and for

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

--
Jay McCarthy <jay@xxxxxxxxxx>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay

"The glory of God is Intelligence" - D&C 93
_________________________________________________
For list-related administrative tasks:
http://list.cs.brown.edu/mailman/listinfo/plt-dev

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise