[erlang-questions] Does Erlang pure functional programming language?
Gleb Peregud
gleber.p@REDACTED
Thu Jan 19 15:52:04 CET 2012
On Thu, Jan 19, 2012 at 15:50, Abdul Fattah Mahran
<abdoo.mahran@REDACTED> wrote:
> Hi Attila,
> I can find this link
> http://www.trapexit.org/Erlang_and_Neural_Networks#State_of_the_Purely_Functional
> 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
> <attila.r.nohl@REDACTED> wrote:
>>
>> 2012/1/19, Abdul Fattah Mahran <abdoo.mahran@REDACTED>:
>> > 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
>> language.
>
>
>
>
> --
> Thanks
> Best Regards,
> Abd El-Fattah Mahran
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list