Comment

Comment by flavio81

A requirement for functional programming is that there's no action from a distance, thus, functions should not modify variables outside of their scope.

This doesn't exactly mean immutable data structures are mandatory, but it helps.

In any case, most of the functions that operate on data structures in Lisp (or Common Lisp) do it in an immutable way.

parent flavio81 8 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton