News for hackers. Stuff that matters.
Re:Functional programming is finally going mainstream by jayd16 on Tuesday July 12, 2022 @10:28PM (#32078379)
Why have immutable data structures not taken over in the general case if it's a strict improvement? Sometimes they're good and sometimes there not. The issue is functional programming needs them to be used in every case.

Personally I'm of the opinion that purity is impossible so if a paradigm needs purity it's going to be an uphill battle.

Re:Functional programming is finally going mainstream by christophilus on Tuesday July 12, 2022 @10:45PM (#32078485)
FP doesn’t require their use in every case. For example, Clojure allows mutation as an optimization. But for the normal path, immutable data structures are just fine and help avoid a whole host of bugs.
Re:Functional programming is finally going mainstream by yencabulator on Wednesday July 13, 2022 @01:39PM (#32086106)
I'd argue that means Clojure lets you use paradigms other than FP. FP is still FP.