Re:Introduction to Functional Programming in OCaml
by kazinator on Thursday August 23, 2018 @10:42AM
(#17827653)
E.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.
It's cool that cpp is 'flattening' through fp idioms, you can avoid its complexity without leaving the country entirely.