Re:Learning Haskell/Python makes you a worse C# programmer
by gecko on Sunday November 25, 2012 @02:07PM
(#4828904)
I think the author is simply inexperienced in C#. Here's the right way to express his code:
Note how mind-numbingly close this is to the Python:
I also think it's considerably easier to read than the foreach loop.
[ Parent
| on HN ]
Re:Learning Haskell/Python makes you a worse C# programmer
by resurge on Sunday November 25, 2012 @02:29PM
(#4828985)
Note that this article is from 2006. Hence his using of C# 2.0 instead of a later version which includes Linq.
Re:Learning Haskell/Python makes you a worse C# programmer
by kenko on Sunday November 25, 2012 @03:27PM
(#4829173)
Linq, which was inspired by ... Haskell!
Would it be irresponsible to speculate that this article is directly responsible for the inclusion of Linq in C#? It would be irresponsible not to speculate!
Re:Learning Haskell/Python makes you a worse C# programmer
by pjmlp on Sunday November 25, 2012 @04:56PM
(#4829422)
LINQ was introduced by Erik Meijer, an Haskell researcher working on .NET team.
http://research.microsoft.com/en-us/um/people/emeijer/papers...
Re:Learning Haskell/Python makes you a worse C# programmer
by rjzzleep on Sunday November 25, 2012 @08:45PM
(#4830022)
a true gem, thanks for this. where did you find out about this paper?
Re:Learning Haskell/Python makes you a worse C# programmer
by pjmlp on Monday November 26, 2012 @02:43AM
(#4831060)
I read a lot research papers, specially related to compiler design.
Re:Learning Haskell/Python makes you a worse C# programmer
by Ingaz on Sunday November 25, 2012 @02:50PM
(#4829055)
I've read this article in 2006.
Even in this year it was obviously provocative.
Now everybody knows that type inference, list comprehensions and lambda functions can reduce code. Even javers.