News for hackers. Stuff that matters.
Re:LINQ Ruined My Favorite Interview Question by gngeal on Thursday July 11, 2013 @05:15PM (#6029275)
In particular, a query like the one in the original blog post will evaluate multiple intermediate lists that then need to be thrown away.

Why not fuse the operations, if the values are immutable?

Re:LINQ Ruined My Favorite Interview Question by moomin on Friday July 12, 2013 @01:37AM (#6031110)
Well, there's two ways to do that in Clojure: write your own list processing (usually regarded as bad style) or use reducers. Both are appropriate in specific instances, but the fact remains that the lazy seq code above is the idiomatic way of doing it in Clojure. So the _default_ way of doing it is slower than LINQ's default way of doing things.

It wouldn't be hard to make LINQ behave like Clojure, either.