3 ms·
Lisp is not purely functional (few languages are). Purely functional languages do not let you modify variables. Edit: Also, programmers in non-pure functional
by paulgb 19y ago
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.
- Tichy 19y agoIn 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.