News for hackers. Stuff that matters.
Re:Why learning Haskell/Python makes you a worse programmer ... by adambard on Monday April 22, 2013 @06:51PM (#5592219)
x is the variable in the anonymous function 'x => x != ""'. I don't know C# but I presume that everything before '=>' is the argument list and the rest is the function body (with implicit return).

You can see it again in '(a, b) => a + "\n" + b'.

As a side note, I find it a bit funny how C# chooses method names in Linq for the benefit of programmers who know SQL, despite `Select`, `Where`, and `Aggregate` acting exactly like what other functional languages would call `map`, `filter`, and `reduce`. Not wrong, just sort of quirky.

Re:Why learning Haskell/Python makes you a worse programmer ... by cpeterso on Monday April 22, 2013 @07:20PM (#5592335)
JavaScript will use the same "fat arrow" syntax for anonymous functions in ES6:

http://css.dzone.com/articles/javascript-fat-city

Re:Why learning Haskell/Python makes you a worse programmer ... by adambard on Monday April 22, 2013 @07:22PM (#5592338)
Coffeescript uses it already.
Re:Why learning Haskell/Python makes you a worse programmer ... by vorg on Monday April 22, 2013 @07:37PM (#5592396)
> `Select`, `Where`, and `Aggregate` acting exactly like what other functional languages would call `map`, `filter`, and `reduce`. Not wrong, just sort of quirky.

Or `collect`, `findAll`, and `inject`.

Re:Why learning Haskell/Python makes you a worse programmer ... by adambard on Monday April 22, 2013 @09:11PM (#5592728)
Yeah, I don't know what the precedent is for Ruby's versions. I'm glad map, filter and reduce are also present.