TheChaseMan's Frenetic SoapBox

Always looking for better ways to do things...

Post RTM Depression

OK, 'depression' is the wrong word, it's more like 'tenativeness'. C# 2.0 gives you the ability to do some very interesting things as I'm sure you've seen by now. Based on what I've seen in C# 3.0, it will be in interesting future as well. Maybe I'm just feeling timid, but I'm curious if anyone really wants to read or debug code that looks like this just because whoever wrote it, wrote it the way they did just because they could, or for any other reason:  (Say that really fast 10 times)

List<string> strings = new List<string>(new string[] {"Hello", "World"});
strings.ForEach(
delegate(string s) { Console.WriteLine(s); });


Digg!

posted on Tuesday, November 01, 2005 8:18 PM

Feedback

# re: Post RTM Depression 11/2/2005 7:39 AM Milan Negovan

I think Bill Clinton said it best, when asked about his affair with Monica Lewisnki, "I did because I could". :) Seems to be the case with this snip. I call it "coding acrobatics."