Jacqueline Firth
Jacqueline Firth
Blocked on #11.
Just haven't gotten around to it. I was planning to add this when I figured out how to support only applying refactoring rules when their suggestions don't require inserting new...
That is indeed tricky. Got some examples of code in the wild this could clean up? Maybe we could get more mileage out of only detecting simpler cases, like when...
I like this rule, since it unlocks further for loop simplifications. For example, that `for` loop flattening that @Metaxal suggested is [already implemented](https://github.com/jackfirth/resyntax/blob/master/default-recommendations/for-loop-shortcuts-test.rkt#L225-L241). The `(for ... (when ... (for ...)))`...
I implemented this in #249 and forgot that this issue exists 😅 I implemented it because I hit a few loops in real-world code that this would simplify. It appears...
Yup, see #37 for some mentions of the problem to myself. Having a canonical issue for it is good though.
In summary: the problem is that Resyntax depends on DrRacket's code indenter which is entangled with the GUI framework. That's the only reason Resyntax needs a display. If we can...
I think this might be fixable now by making Resyntax use the new syntax coloring APIs, specifically those described in [`syntax-color/racket-indentation`](https://docs.racket-lang.org/syntax-color/racket-nav.html#%28mod-path._syntax-color%2Fracket-indentation%29).
Fixed by #236.
We could probably do it for provably-safe cases, like when the right-hand-side is a quoted syntax object.