Evaluate snippets of Clojure with the bindings set up as if you'd called the function. This neat idea was proposed in https://blog.cognitect.com/blog/2017/6/5/repl-debugging-no-stacktrace-required and https://github.com/vvvvalvalval/scope-capture builds tooling to automate it!
Related Posts
I've been experimenting with an 'evaluate up to cursor' mode for my PL project.
I love evaluating self-contained snippets in Lisp, this generalises the idea.
The interpreter remembers the arguments when you run tests, then can re-use them when you say 'eval up to here'.
What do you think?
I'm never sure how to convert words with hyphens into SCREAMING_SNAKE_CASE. For example, should built-in function be BUILT_IN_FUNCTION or BUILTIN_FUNCTION?
I've been building an 'extract function' refactor feature. It's surprisingly nuanced.
Where do you put the extracted function? Once you've done the static analysis, what order do you use for the parameters?