-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated Resyntax fixes #462
base: master
Are you sure you want to change the base?
Conversation
Keep imports in `require` sorted and grouped by phase, with collections before files.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `let` expression can be pulled up into a `define` expression.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
(hbl-append | ||
(normal-font "(") | ||
(let loop ([args args]) | ||
(let* ([type (car args)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This let*
could be turned to define
, I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Pretty sure the fix limit is the only thing that stopped Resyntax from addressing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the fix limit should be somehow less strict so that this stops happening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it keeps coming back up. Filed jackfirth/resyntax#429 to track it.
Resyntax fixed 20 issues in 5 files.
let-to-define
tidy-require
if-let-to-cond
define-let-to-double-define
always-throwing-if-to-when