Subscribe to our podcast!

Episode 23: Functional Programming in C# with Oliver Sturm



Subscribe to the show via Subscribe via iTunes Store or

kick it on DotNetKicks.com

 

About This Episode

During PDC 2008, Oliver Sturm joined Keith and Woody to talk about his new book Functional Programming in C# (due in 2009) and discussed how all C# developers have the power of functional programming at their fingertips today. The discussion went so deep there is a code example in the post to illustrate the concepts Oliver discussed.



Thanks to our guest this episode

oliver-small1_thumb

Oliver Sturm is an experienced software architect, developer, trainer and author, and a language freak. He also thinks he's a nice guy, but he's prepared to accept other opinions on that. He is a C# MVP and he works for Developer Express as a Technical Evangelist and Lead Program Manager for the Frameworks Division.

Oliver’s blog is http://www.sturmnet.org/blog

 

Code from the interview

Func<int,int,int> add = (x,y) => x + y;

Func<int, Func<int,int>> addC2 =
   delegate(int x) {
      return delegate (int y) {
          return x + y;
      }
   };

Func<int, Func<int,int>> addC =
   x => y => x + y;

var add5 = addC(5);

add5(37);
Show Notes

Download Show

Subscribe To The Show

There are three ways to subscribe to our show so you can stay current. We support standard RSS, subscriptions via the iTunes Store and we are also available in the Zune Market place. Chose your poison by clicking on your choice below.

Subscribe to our podcast! Subscribe via iTunes Store Subcribe via Zune Market Place

#1 David Seruyange on 3.04.2009 at 1:07 AM

Quick footnote, you are missing a semicolon on the inner delegate in your sample code there.

Func<int, Func<int,int>> addC2 =

delegate(int x) {

return delegate (int y) {

return x + y;

};

};

#2 Scotty G on 6.07.2011 at 8:59 AM

Looks like Oliver's Book got released today. 6/7/2011 www.amazon.com/.../0470744588

Leave a Comment

DevExpress