Quote:
* As happycow2 states, mutable state is not allowed by the language (in a purely functional setting). This is enforced by single assignement variables. A value can never be updated once declared.
* Functions are available as first class values. This means that anonymous functions can be declared and a function's value can be passed the same way as any other value type.
* In return for giving up mutable state a program is easier to make provably correct.
|
How does this make my statement not fair? All I wrote was the old-fashioned name and that pure functional programming didn't meet industry-strength requirements. Exactly that's why "C" was developed, and later C++, C#, modern Java, Visual Basic etc.