[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Exceptions on JVM [was: Exceptions needs examples]



Michael Montague scripsit:

> For 'guard' to be really useful in real programs, it needs to be
> cheap, particularly for the normal case (no exception raised). The
> implementation in R7RS captures a continuation in the normal case
> and in Foment, capturing continuations is expensive: it requires a
> stack copy.

The point is that on the JVM, stack copies are not possible, so only
downward closures and upward continuations are supported.

-- 
But that, he realized, was a foolish            John Cowan
thought; as no one knew better than he          cowan@x
that the Wall had no other side.                http://www.ccil.org/~cowan
        --Arthur C. Clarke, "The Wall of Darkness"

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports