News for hackers. Stuff that matters.
Re:New functional language - C# by mojuba on Monday June 23, 2008 @05:39AM (#224959)
As far as I can tell, the majority of C# programmers are either not aware of these features or don't know how to use it.

What stops me from praising C# is its ridiculous verbosity. A language in which the shortest possible form of a character array literal is

  new char[] {'a', 'b'}
is doomed to be low-end, low entry-level, low-respect language, despite all efforts to bring some high-end features into it.
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.