2 ms·
about 2, I remember some old lisp book (Queinnec L.I.S.P) said that if mutable state is entirely contained and invisible, you can forget about purity. It's coo
by agumonkey 8y ago
about 2, I remember some old lisp book (Queinnec L.I.S.P) said that if mutable state is entirely contained and invisible, you can forget about purity.
It's cool that cpp is 'flattening' through fp idioms, you can avoid its complexity without leaving the country entirely.
- kazinator 8y agoE.g. a pure function can work internally by mutating some local variables. Locally constructed new objects such as conses can be mutated before being returned to the caller. Blackbox testing cannot tell.