generated from jackfirth/racket-package-template
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Creating a definition context rule with define-definition-context-refactoring-rule is somewhat awkward. There's a few usability issues:
- You have to match the entire definition context, which is rarely useful.
- You have to be careful to use
~replacement,~splicing-replacement, and~focus-replacement-onin order to avoid issues like Avoid excessive formatting infor/foldsuggestion #476. - The set of recognized definition context forms is hard-coded.
Something better should be possible. Perhaps something like how Rhombus macros work, where a statement macro can match on all following statements and statement macros return two values: an expansion and an "unprocessed tail". That would let Resyntax automatically use ~replacement, ~splicing-replacement, and ~focus-replacement-on, and it would remove the need for definition context rules to care about the forms earlier in the definition context.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request