News for hackers. Stuff that matters.
Re:The Plan for React 18 by WorldMaker on Tuesday June 08, 2021 @05:20PM (#27441014)
Yes, I stated that. Those functions are impure. Purity is a lovely goal, but purity also isn't a defining characteristic of functional programming, it's a modern pursuit. I've met enough classic LISP practitioners that lived their whole programming lives in the most impure of functional programming, that I would never want to tell them to their face that what they did didn't count as functional programming because of all the leaky impurity in LISP (due to pragmatic considerations of the time).
Re:The Plan for React 18 by flowerlad on Tuesday June 08, 2021 @05:26PM (#27441083)
> purity also isn't a defining characteristic of functional programming

Disagree. It is in fact the defining characteristic of functional programming.

Re:The Plan for React 18 by e12e on Tuesday June 08, 2021 @06:30PM (#27441926)
It may be defining of pure functional programming. But not for "functional programming". Some arguments for why (and indeed some discussion for why not, too !) : https://wiki.c2.com/?FunctionalProgramming

Ed: and I suppose if a function call allocates a stack frame it's no longer a pure function? Or are all functions of type crash-or-value?