News for hackers. Stuff that matters.
Re:New functional language - C# by erictobia on Monday June 23, 2008 @07:49AM (#225030)
It's actually possible to write slightly less verbose code with C# 3.0. For example:

  //...

  char[] someChars = {'A', 'B', 'C'};

  var moreChars = new [] {'D', 'E', 'F'};

  SomeMethod(new[] { 'G', 'H', 'I' });

  //...
I do, however, agree with your sentiment. The language still has some aspects that are quite verbose when compared with dynamically typed languages. You are also right in pointing out that these new features are irrelevant if programmers are not taking advantage of them.
Re:New functional language - C# by mojuba on Monday June 23, 2008 @08:07AM (#225043)

  new [] {'D', 'E', 'F'}
I thought it was impossible at least in 2.x, is this something added in 3.0?
Re:New functional language - C# by erictobia on Monday June 23, 2008 @08:39AM (#225059)
You're right - it has been there since at least 2.0. I threw that in there as an example. I apologize for not clarifying that.