Top all-time · #8584
Notes on Haskell
Personal blog · notes-on-haskell.blogspot.comprogramming
Notes on Haskell is a personal blog at notes-on-haskell.blogspot.com about programming. Since 2007, 9 different Hacker News readers have linked it 11 times, most often “What's Wrong with the For Loop”. The last post was in 2010, but the archive is still widely read.
Too few sampled comments (3) to say how often HN recommends it.?
Why HN links it
Linked for a post on why Haskell has no for loop, which argues that lazy evaluation makes parameters behave like closures. Commenters cite it when discussing thunks and iterators.
Summarised by Claude from a sample of 3 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- What's Wrong with the For Loop3 people · 3 mentions · first linked 2008-05-19
- /2007/02/whats-wrong-with-for-loop.html?showComment=11709732000002 people · 2 mentions · first linked 2011-03-09
What Hacker News says?
I know I am repeating a previous comment but the author correctly explains it here http://notes-on-haskell.blogspot.com/2007/02/whats-wrong-wit... In Haskell all parameters are lazy by default, which effectively turns every parameter into a closure. for e.g., consider the code boost x = map ( x) [1..10] total = sum (boost 2) On invocation of the sum function, the (boost 2) is not necessarily evaluated. Instead a ref…
Comment linking /2007/02/whats-wrong-with-for-loop.html?showComment=1170973200000
on “Notes on Haskell: What's Wrong with the For Loop”Submitted What's Wrong with the For Loop as a story · 87 points
HN discussionI'm not the author, and I think this was kind of a cop out, but: http://notes-on-haskell.blogspot.com/2007/02/whats-wrong-wit... "A few people have commented that none of the examples use closures, but in Haskell closures are used not only to represent functions but also unevaluated values (i.e., thunks). For example, in the simple expression total = sum array the variable array is free and refers to some value, pos…
Comment linking /2007/02/whats-wrong-with-for-loop.html?showComment=1170973200000
on “Notes on Haskell: What's Wrong with the For Loop”Submitted Notes on Haskell: What's Wrong with the For Loop as a story · 66 points
HN discussionI also had a reaction when I started using Ruby and being introduced to functional programming concepts. I read blog posts http://notes-on-haskell.blogspot.com/2007/02/whats-wrong-wit... about people saying you don't really need for loops. I thought...well, how do you get anything done ? Ends up that most things you care about can be done with iterators like each , map , and inject (like a fold). On occasion, you'll…
Comment linking /2007/02/whats-wrong-with-for-loop.html
on “Erlang vs. Scala”Submitted Arrows in Javascript as a story · 36 points
HN discussionSubmitted What's Wrong with the For Loop as a story · 19 points
HN discussionSubmitted Static vs. Dynamic Languages as a story · 8 points
HN discussionSubmitted Rewriting Software (2007) as a story · 1 points
HN discussionSubmitted The Closures are Coming as a story · 1 points
HN discussionSubmitted Futurama's Taxicab Numbers as a story · 1 points
HN discussion