resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

No refactoring on #lang racket

Open sorawee opened this issue 2 years ago • 1 comments

Why doesn't

#lang racket

(define (test)
  (let ([x 1])
    (+ x 1)))

get refactored, while

#lang racket/base

(define (test)
  (let ([x 1])
    (+ x 1)))

does? I agree that there are refactoring that could be unsafe in #lang racket (which is safe in #lang racket/base), but this particular case seems always fine?

sorawee avatar Dec 25 '23 00:12 sorawee

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 imports into the module, but Alex figured that out for me as a byproduct of #166. So I think we can do this now.

jackfirth avatar Jan 08 '24 12:01 jackfirth