Just sharing some of my inconsequential lunch conversations with you... RSS  

Wednesday, November 14, 2007

Improve Your C#! Borrow from F#...

Here's another great post from DidItWith.Net, showing how using F# as a source of inspiration it's easy to create APIs that enable more declarative C# code to be written, resulting on clean and readble code like:

var a = ArrayEx.Create(20, x => x + 1);

ArrayEx.Iterate(a, (x, i) => Console.WriteLine("{0}: {1}", x, i));

No comments:

Development Catharsis :: Copyright 2006 Mário Romano