Expression closures - use-cases for shortcut lambda syntax(blocks)

Chris Double chris.double at double.co.nz
Wed Mar 21 16:55:32 PDT 2007


On 3/22/07, P T Withington <ptw at pobox.com> wrote:
> Another solution would be to add macros to the language, so that the
> try/finally version was cleaner.

Having a lightweight closure syntax reduces the need for many with-*
style macros. This is how Smalltalk manages to have a lot of nice
looking additions to the language by using their lightweight blocks.
There was a discussion a while back on ll1-discuss about it:

http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg02060.html

I wrote a parser combinator library in Javascript and the noise of
'function' did get in the way a bit when dealing with on-the-fly
constructed parsers.

Chris.
-- 
http://www.bluishcoder.co.nz



More information about the Es4-discuss mailing list