News for hackers. Stuff that matters.
Re:Pissed off about functional programming by tripa on Sunday March 27, 2011 @04:32AM (#2374542)

    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.

There are no comments on this comment yet.