News for hackers. Stuff that matters.
Re:Erlang for Skeptics by frognibble on Sunday November 29, 2009 @12:11PM (#966498)
Variable bindings in Erlang are immutable to support the pattern matching. If variable bindings were not immutable, then Erlang would need syntax to distinguish between free and fixed variables in a pattern. The "=" in Erlang is pattern match, not assignment. Erlang could make bindings mutable without impacting the concurrent nature of Erlang because values would still be immutable.
Re:Erlang for Skeptics by rvirding on Sunday November 29, 2009 @04:34PM (#966837)
It is as you say, you must make a choice, trying to have both becomes very confusing. In LFE (Lisp Flavoured Erlang) I went the other and added proper scoping. It is the lack of scoping which I consider to be the most confusing and has caused some strange features.

Having mutable variables is definitely possible but I don't really see the problems with immutable ones. You get used to it very quickly.

Re:Erlang for Skeptics by xtho on Sunday November 29, 2009 @01:23PM (#966577)
It nevertheless is confusing for somebody who doesn't know erlang. Even prolog uses different symbols for matching a variable and for defining a clause.
Re:Erlang for Skeptics by gloob on Sunday November 29, 2009 @01:59PM (#966627)
And Turkish is confusing for someone who doesn't know Turkish. If you want to use a language, learn it.
Re:Erlang for Skeptics by xtho on Monday November 30, 2009 @07:33AM (#967715)
An explanation for this digression from prolog syntax would have been welcome.