Re:Pissed off about functional programming
by shadowfox on Sunday March 27, 2011 @01:05AM
(#2374232)
I think I didn't get this :( Care to explain?
[ Parent
| on HN ]
main=print n
n=42
In C or Python, this would print 0 or undef or some random contents. In Haskell, it prints 42. The "assignment" reaches back to instructions before itself. Which ought to hint it's not really an assignment in the (my) usual sense of the word.