Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: (Semi-OT) Coroutine vs Continuation?

by Elian (Parson)
on Sep 13, 2004 at 13:23 UTC ( #390545=note: print w/ replies, xml ) Need Help??


in reply to (Semi-OT) Coroutine vs Continuation?

A coroutine looks exactly like a normal subroutine, and to the caller it behaves like one -- you invoke it, it does its thing, and returns some values. No continuations necessary (though they do make things easier) for them. A continuation's a somewhat more complex thing, though the fact that you can do coroutines with continuations (with some complications) makes things a bit fuzzy. I'll go into some detail on the differences at some point when I've got a bit of time.


Comment on Re: (Semi-OT) Coroutine vs Continuation?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://390545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2015-07-29 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls