3 ms·
Sounds a bit like a lisp macro? Or in JS using eval?
by hshdhdhehd 1y ago
Sounds a bit like a lisp macro? Or in JS using eval?
- vidarh 1y agoIt's a closure. The lisp equivalent is also a closure, and the JS equivalent is a function (which is a closure as they can refer to variables in the scope they're defined in. To test this define a function inside a function and reference variables defined in the outer function, and return the inner function).