News for hackers. Stuff that matters.
Re:Erlang: What the Cool Kids Are Doing by Tichy on Tuesday January 15, 2008 @06:18PM (#98943)
I thought LISP is functional, and it lets you change variables. So I don't think that is specific to functional programming.
Re:Erlang: What the Cool Kids Are Doing by paulgb on Tuesday January 15, 2008 @07:21PM (#98976)
Lisp is not purely functional (few languages are). Purely functional languages do not let you modify variables.

Edit: Also, programmers in non-pure functional languages will often still minimize their use of mutation (changing variables) for a number of reasons.

Re:Erlang: What the Cool Kids Are Doing by Tichy on Wednesday January 16, 2008 @08:02AM (#99192)
In any case, when evaluating Erlang, I found the immutable variables to be rather unpractical. I can see why they might help to avoid errors with multi threading, but I don't see a reason to be excited about it? At the end of the day, it is another limitation of the language. With Java, that is what people complain about, the constraints, why wish for it in other languages?

If you think that immutable variables reduce programming errors, you are free to just not change your variables anyway, I guess. No language constraint required.

Re:Erlang: What the Cool Kids Are Doing by dpapathanasiou on Wednesday January 16, 2008 @07:03AM (#99182)
As paulgb said, Lisp is not purely functional, unlike Erlang or Haskell.

And actually, you could ignore functional programming and write code in an imperative style in Lisp (though it's not recommended, since you'd be missing out on the benefits of using Lisp).

Take a look at "Imperative Outside In" (chapter 3, section 2) in "On Lisp" (http://lib.store.yahoo.net/lib/paulgraham/onlisp.pdf) for an example.