Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Re (tilly) 1: Perl 6 coroutines (RFC 31)

by MeowChow (Vicar)
on Jul 15, 2001 at 02:15 UTC ( #96788=note: print w/replies, xml ) Need Help??

in reply to Re (tilly) 1: Perl 6 coroutines (RFC 31)
in thread Perl 6 coroutines (RFC 31)

I believe that would create alot of nasty confusion, and make localized globals all but useless inside of coroutines. For instance, the following would be quite troublesome:
sub my_iter { for (@_) { yield $_; # upon return, $_ may no longer be localized. if we # modify it, we could be modifying a global value # outside our scope. there's no way to tell, and # that's rather nasty. } }
Of course, one could avoid using localized globals inside coroutines/generators in the first place, but where's the fun in that, I ask ;)
               s aamecha.s a..a\u$&owag.print

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2020-10-26 02:12 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (249 votes). Check out past polls.