[erlang-questions] Does Erlang pure functional programming language?
Thu Jan 19 15:52:04 CET 2012
On Thu, Jan 19, 2012 at 15:50, Abdul Fattah Mahran
> Hi Attila,
> I can find this link
> section 1.4 and it states that Erlang is pure, please advice?
It's incorrect. It is possible to write a pure functions in Erlang,
but it is possible to have side effects like:
- sending messages to other processes (changes state of other process)
- mutating own process dictionary
- manipulating ETS tables
- changing things like operating system environmental variables, etc.
> On Thu, Jan 19, 2012 at 4:43 PM, Attila Rajmund Nohl
> <> wrote:
>> 2012/1/19, Abdul Fattah Mahran <>:
>> > Hi All,
>> > I want to know if Erlang pure functional programming language or not? I
>> > can't find a clear document that states this. If someone can tell where
>> > I
>> > can find this information in Erlang documentation it will help a lot.
>> Erlang functions can have side effects, so it's not a pure functional
> Best Regards,
> Abd El-Fattah Mahran
> erlang-questions mailing list
More information about the erlang-questions