jackfirth / resyntax

A Racket refactoring engine
Apache License 2.0
56 stars 10 forks source link

Suggest removing `syntax-e` when calling `format-id` #169

Closed jackfirth closed 1 year ago

jackfirth commented 1 year ago

Saw some code like this in the discord server today:

(format-id foo "~a->string" (syntax-e #'bar))

Using syntax-e with format-id like this is unnecessary because format-id automatically unwraps syntax objects. Resyntax should suggest getting rid of it.