Skip to content

Automated Resyntax fixes #1458

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Automated Resyntax fixes #1458

wants to merge 17 commits into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Jun 20, 2025

Resyntax fixed 38 issues in 20 files.

  • Fixed 9 occurrences of let-to-define
  • Fixed 9 occurrences of define-lambda-to-define
  • Fixed 2 occurrences of single-clause-match-to-match-define
  • Fixed 2 occurrences of nested-if-to-cond
  • Fixed 2 occurrences of cond-let-to-cond-define
  • Fixed 2 occurrences of consing-onto-static-list
  • Fixed 2 occurrences of if-begin-to-cond
  • Fixed 2 occurrences of always-throwing-if-to-when
  • Fixed 2 occurrences of if-else-false-to-and
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of case-lambda-with-single-case-to-lambda
  • Fixed 1 occurrence of define-values-values-to-define
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of inverted-when
  • Fixed 1 occurrence of format-identity

resyntax-ci bot added 17 commits June 20, 2025 01:15
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
This `match` expression can be simplified using `match-define`.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This use of `format` does nothing.
Using `cond` instead of `if` here makes `begin` unnecessary
This use of `define-values` is unnecessary.
This negated `when` expression can be replaced by an `unless` expression.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `if`-`else` chain can be converted to a `cond` expression.
This `case-lambda` form only has one case. Use a regular lambda instead.
The `define` form supports a shorthand for defining functions.
This `if` expression can be refactored to an equivalent expression using `and`.
This list-constructing expression can be simplified
This `let` expression can be pulled up into a `define` expression.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
@samth
Copy link
Member

samth commented Jun 20, 2025

This seems to cause test failures, @jackfirth

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.

1 participant