Tuesday, May 29th, 2007

Yield returns are not esoteric anymore

Filed under: — lemire @ 21:36

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

RSS feed for comments on this post.

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: I + II + IX= XII. Yes, you have to enter a roman numeral. (Answer must be in upper case.)

« Blog's main page

25 queries. 1.109 seconds. Valid XHTML

Powered by WordPress

Subscribe to this blog in a reader or by Email.