News for hackers. Stuff that matters.
Re:A Tour of Lisps by galaxyLogic on Monday January 29, 2024 @06:36PM (#39184274)
I think mutable variables (inside functions) are just fine, as long as the function itself always returns the same result for the same arguments. That is the essence of "pure" I think.

A function should be a "black box". I don't care what happens inside it as long its externally observable behavior is pure.

There are no comments on this comment yet.