Changes by: Jason Hickey (jyh at cs.caltech.edu)
Date: 2007-04-27 14:53:19 -0700 (Fri, 27 Apr 2007)
Revision: 10538
Log message:
Added "body placeholders" as Aleksey and I discussed.
I chose the placeholder ..., so you write.
foreach(x => ..., a b c)
println($x)
Or, written another way.
foreach(..., a b c)
fun(x => $(println $x))
Also, this way you can have more than one function.
f(x => $x, y => $y)
I'm still not entirely happy, because the main practical use
of ... is for foreach. The extra 3 chars seems like a
burden, because foreach is used fairly frequently, much
more than other anonymous functions.