redplanetlabs / specter

Clojure(Script)'s missing piece
Apache License 2.0
2.52k stars 105 forks source link

Changing code with a stack like pattern #325

Closed JacobGood1 closed 2 years ago

JacobGood1 commented 2 years ago

Assume that I have created a new let statement, let-mut, that will make all the bindings of a let statement mutable.

(let-mut [a 1] a) would become (let [a (SomeState. 1)] (.getState a))

Now, let's make this more complex:

image

How would one accomplish something like this in specter? Thanks!

nathanmarz commented 2 years ago

This is not relevant to Specter.