2 ms·
> What if we let our remote user define their own functions? Aren't we then back at the problem with using eval?
by wodenokoto 6y ago
> What if we let our remote user define their own functions?
Aren't we then back at the problem with using eval?
- ywei3410 6y agoNo, because you control the base primitive functions by passing in fns. In more formal terms, you can control the context. If we really cared, it would be trivial to extend this to a typed variant or change the evaluation semantics. Here's an example in another language [1]. [1] https://www.youtube.com/watch?v=YxhBxHl76vc https://www.youtube.com/watch?v=YxhBxHl76vc