(no title)
bitwalker | 1 year ago
The code I linked literally shows that the closed-over terms are written into the closure environment when the fun is created, and if any term is a heap allocated object, it isn't copied into the closure, only the pointer is written into the env. The only reason you can't observe the effects of mutability here is because, unlike Python, there is no way to mutate bindings in Erlang.
Again, this isn't partial application - not in implementation nor in semantics.
Muromec|1 year ago
Maybe you will change your opinion if you take a look at the code 'erlc -S' produces for the inline function.