3 ms·
The evaluate operator would require an environment parameter in order to avoid capture issues in the same way as passing down the lambda. If you're passing aro
by kazinator 8y ago
The evaluate operator would require an environment parameter in order to avoid capture issues in the same way as passing down the lambda.
If you're passing around a piece of code with an environment, you effectively have a lambda already: one that is condemned to slow interpretation.
Without the environment passing for proper referencing semantics, the implementation wouldn't be a correct call-by-name reference; it would not pass Knuth's Man-or-boy test.
https://en.wikipedia.org/wiki/Man_or_boy_test https://en.wikipedia.org/wiki/Man_or_boy_test