in reply to Re: Coro woes
in thread Coro woes

coroutines are an awesome feature

Do you have a (brief) example of how you use them please?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.

Replies are listed 'Best First'.
Re^3: Coro woes
by runrig (Abbot) on Jun 08, 2016 at 23:23 UTC
    My only example is turning a callback interface into a iterative interface (see Spreadsheet::ParseExcel::Stream). If the callback interface is too much trouble to completely rewrite, then coroutines are an option.

      Gotcha. Thanks.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.