News for hackers. Stuff that matters.
Re:Why Functional Programming Should Be the Future of Software by znafelrif on Wednesday November 02, 2022 @09:48AM (#33435701)
The properties mentioned in the article are not really tied to functional programming.

- Not allowing null-references can be done with any paradigm. For example with object-oriented programming there really is no reason why it wouldn't work to not allow null references.

- Immutability can also be done with every paradigm. The Java String for example is both object-oriented and immutable.

I think the paradigm is actually irrelevant. The real advantage is not gained by using a functional programming language. It is gained by using a language that prevents null-references and makes it easy to write and use immutable data structures.

Re:Why Functional Programming Should Be the Future of Software by ParetoOptimal on Wednesday November 02, 2022 @10:43AM (#33436623)
Tis doesn't give you 1) ease of use and 2) composability.