[plt-scheme] Java Continuations!

From: Michael Vanier (mvanier at cs.caltech.edu)
Date: Wed May 26 20:08:00 EDT 2004

> From: "Anton van Straaten" <anton at appsolutions.com>
> Cc: <plt-scheme at list.cs.brown.edu>
> Date: Wed, 26 May 2004 18:15:32 -0400
> 
> > Now if they'd only implement lexical closures in java,
> > they'd really have something :-/
> 
> You probably know that Java has lexical closures - in the form of
> (anonymous) inner classes - it's just that you need the patience of a bushel
> of saints to use them.
> 
> Anton
> 

I call anonymous inner classes a poor man's lexical closures.  As you
probably know, they aren't real closures.  You can simulate real closures
by passing references to whatever data you want to capture in methods and
storing them in the object, but that's really painful.  C# has real
closures as of version 2.0.

Mike



Posted on the users mailing list.