Yield returns are not esoteric anymore

I did a little bit of research on the Web today, following a statement by my friend Owen to the effect that yield returns were not something Joe Programmer could be expected to know about.

Turns out that yield returns are supported in C#, Visual Basic (VB.NET), Python and Ruby.

So, yes, I’d say that if you are programmer out there, you ought to know about yield returns.

1 Comment

  1. And they’re being used to do interesting things – check out multitask:

    http://o2s.csail.mit.edu/o2s-wiki/multitask

    cooperative multitasking using generators in python.

    Comment by Parand — 29/5/2007 @ 23:17

Sorry, the comment form is closed at this time.

« Blog's main page

23 queries. 0.333 seconds. Valid XHTML

Powered by WordPress

Subscribe to this blog in a reader or by Email.