top | item 25813679

Trouble in Paradise: Fibonacci

4 points| hypomnemata | 5 years ago |github.com | reply

1 comment

order
[+] hypomnemata|5 years ago|reply
From the intro:

Haskell is a lazy language, which has its consequences. In this post I'll demonstrate just how easy it is to shoot yourself in the foot with laziness using the classic example of computing Fibonacci numbers, which very ironically virtually all relevant Haskell documentation gets wrong, given that it's the primary use case for Haskell.