resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

Suggest using `define-syntax-parse-rule` when applicable

Open jackfirth opened this issue 3 years ago • 1 comments

Many macros written in terms of define-syntax and syntax-parse can be simplified to use define-syntax-parse-rule. Resyntax should suggest rewriting these macros, as define-syntax-parse-rule macros have a lot less boilerplate and are generally much more readable. A define-syntax with syntax-parse macro that only has one clause can be rewritten, as well as define-syntax-parser macros that only have one clause. Note that references to the input syntax object as a whole can be replaced with this-syntax.

jackfirth avatar Jun 11 '21 01:06 jackfirth

Blocked on #11.

jackfirth avatar Apr 01 '22 00:04 jackfirth