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

Leave a comment

Warning: When entering a long comment, please ensure that you make copy of your text prior to submitting it. If the server should fail or if you hit a bug, you might lose your work. I am not responsible for your lost effort.

To spammers: I carefully review every single post and make sure that spam gets deleted. You are wasting your time if you are manually entering spam using this form. Read my terms of use to see what I consider to be abusive.

Example: duo plus septem is '9'. The numbers are expressed in latin numerals but you should give your answers using ordinary digits.

 

« Blog's main page

Powered by WordPress