Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Dec 4, 2024

Resyntax fixed 20 issues in 5 files.

  • Fixed 12 occurrences of let-to-define
  • Fixed 5 occurrences of tidy-require
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of always-throwing-if-to-when

resyntax-ci bot added 5 commits December 4, 2024 00:32
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)]
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Member

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.

Copy link
Contributor

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.

@mflatt
Copy link
Member

mflatt commented Jun 26, 2025

Closing in favor of newer automated fixes.

@mflatt mflatt closed this Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants