Drinking the F# Kool-Aid

Friend Colin Whitlatch just sent me the following C# code snippet to mess with my Saturday morning.  Note the underscore:

 

Action<object> strangeLambda = _ => 
    Console.WriteLine("F# Rules");
strangeLambda(null);
Console.ReadLine();

5 thoughts on “Drinking the F# Kool-Aid”

  1. I prefer use "()=>" instead of "_=>" because "_" become a local variable in the lambda expression and we dont use it. "()" doesnt specify any variable.

Leave a Reply

Your email address will not be published. Required fields are marked *