On Tuesday, September 27, 2016 at 10:27:59 AM UTC-4, Stefan Karpinski wrote: > > But note that if you want some piece of f to be "pasted" from the user and > have access to certain parts of the local state of f, it's probably a much > better design to let the user pass in a function which f calls, passing the > function the state that it should have access to: >
Right; using "eval" in a function is almost always a mistake, an indication that you should really be using a higher-order function. <https://en.wikipedia.org/wiki/Higher-order_function>