(no subject)

Date: 2009-05-29 06:51 am (UTC)
No. Here are some things you can do with real continuation support that you can't do with generators in Python:


  • Pass a continuation to a subroutine, which then invokes it. (You can pass a generator to a subroutine, but the generator can't pass its ability to yield a value to its caller to a subroutine.)
  • Return from the same function call more than once.
  • Unwind the stack when, say, you have an error or a recursive search finds what it was looking for.


The surprising thing is that it turns out to be possible to implement such a general construct efficiently.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

maradydd: (Default)
maradydd

September 2010

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
26 27282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags