The Evolution of a Haskell Programmer

I found this link about The Evolution of a Haskell Programmer quite interesting. It shows a bunch of different approaches to write the well known factorial function in different ways using Haskell. It ranges from the simple pattern-oriented implementation, to confusing implementations with more than 30 lines of Haskell code. And always, always with a brilliant sense of humor.

Let me show you a little of that article:

Senior Haskell programmer

(voted for   Nixon   Buchanan   Bush -- "leans right")
fac n = foldr (*) 1 [1..n]
 

Another senior Haskell programmer

(voted for   McGovern   Biafra   Nader -- "leans left")
fac n = foldl (*) 1 [1..n]
Brilliant ;)

Categories

1 Comments

microft.org Author Profile Page said:

a real walk down memory lane.

Leave a comment

About this Entry

This page contains a single entry by null published on September 22, 2008 9:25 PM.

Movable Type upgraded to 4.21 was the previous entry in this blog.

Global Warming is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.