in reply to RFC: Simulating Ruby's "yield" and "blocks" in Perl
LanX,
Have you read Elian's take on coroutines? I was trying to find the excerpt from Knuth on them but my google fu is weak today so this is as close as it gets. In any event, the idea of having two cooperating processes seems like a useful feature but emulating it doesn't.
Have you read Elian's take on coroutines? I was trying to find the excerpt from Knuth on them but my google fu is weak today so this is as close as it gets. In any event, the idea of having two cooperating processes seems like a useful feature but emulating it doesn't.
Update: Coroutine has a contrived example of how it might be beneficial.
Cheers - L~R
In Section
Meditations